• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Get my custom object from NSDictionary variable
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Get my custom object from NSDictionary variable (From: Daniel Káčer <email@hidden>)

  • Prev by Date: Re: Get my custom object from NSDictionary variable
  • Next by Date: Re: NSLocale and currency symbols
  • Previous by thread: Re: Get my custom object from NSDictionary variable
  • Next by thread: Re: Get my custom object from NSDictionary variable
  • Index(es):
    • Date
    • Thread