Re: NSNull and distinct objective-C type
Re: NSNull and distinct objective-C type
- Subject: Re: NSNull and distinct objective-C type
- From: Graham Cox <email@hidden>
- Date: Thu, 4 Jun 2009 22:36:19 +1000
On 04/06/2009, at 10:31 PM, Steven Hamilton wrote:
I'm getting the error because I initially declared my credit and
debit objects as NSNumbers. Can I recast them without them losing
scope?
Yes, just do this: credit = (id)[NSNull null];
--Graham
_______________________________________________
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