Re: Get my custom object from NSDictionary variable

2010-03-05 Thread Alexander Spohr
Am 05.03.2010 um 00:48 schrieb Daniel Káčer: > [myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom > pairTo:string] forKey:[NSString stringWithFormat:@"%d", [myDictionary > count]]]; Why don’t you use an NSArray? atze ___

Re: Get my custom object from NSDictionary variable

2010-03-04 Thread Matt Neuburg
On Fri, 5 Mar 2010 00:48:05 +0100, Daniel K??er said: >[myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom >pairTo:string] forKey:[NSString stringWithFormat:@"%d", [myDictionary >count]]]; > >.. it seems, that this work correctly .. Not really. You're leaking a ComplexObject in

Re: Get my custom object from NSDictionary variable

2010-03-04 Thread Daniel Káčer
thank you very much ... This was the problem ! On Mar 5, 2010, at 0:57 , Thomas Wetmore wrote: You need to retain your member variables in the initializer. On Mar 4, 2010, at 6:48 PM, Daniel Káčer wrote: - (ComplexObject*)initWithFrom:(NSString*)_sValueFrom pairTo: (NSString*)_sValueTo {

Re: Get my custom object from NSDictionary variable

2010-03-04 Thread Graham Cox
On 05/03/2010, at 10:48 AM, Daniel Káčer wrote: > a add my custom object into NSDictionary variable in my application with > following code: > > [myDictionary setObject:[[ComplexObject alloc] initWithFrom:_tempFrom > pairTo:string] forKey:[NSString stringWithFormat:@"%d", [myDictionary > coun