Re: Newbie question: setting a NSNumber
Re: Newbie question: setting a NSNumber
- Subject: Re: Newbie question: setting a NSNumber
- From: David Sinclair <email@hidden>
- Date: Tue, 21 May 2002 14:16:53 -0700
At 23:10 +0200 2002-05-21, Ondra Cada wrote:
Yes, blah is set as follows in the init method:
blah = [NSNumber numberWithDouble:40.0];
That's it!!! In init you have to retain it (the invariant is,
properties are retained or copied or alloc/inited).
Thanks, that worked. I knew it'd be something simple! Thanks also
to Mike Masukawa who also provided the solution via e-mail.
--
David Sinclair - email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.