Re: Get my custom object from NSDictionary variable
Re: Get my custom object from NSDictionary variable
- Subject: Re: Get my custom object from NSDictionary variable
- From: Daniel Káčer <email@hidden>
- Date: Fri, 5 Mar 2010 01:05:41 +0100
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 {
self = [super init];
if (self) {
sValueFrom = _sValueFrom; <<< should be sValueFrom =
[_sValueFrom retain];
sValueTo = _sValueTo; <<< similarly here...
}
return self;
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden