• 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: NSNull and distinct objective-C type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNull and distinct objective-C type


  • Subject: Re: NSNull and distinct objective-C type
  • From: Steven Hamilton <email@hidden>
  • Date: Thu, 4 Jun 2009 22:42:12 +1000


On 04/06/2009, at 10:36 PM, Graham Cox wrote:


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


Genius! I can now go to bed happy. Thanks a lot.

_______________________________________________

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: 
 >NSNull and distinct objective-C type (From: Steven Hamilton <email@hidden>)
 >Re: NSNull and distinct objective-C type (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSNull and distinct objective-C type
  • Next by Date: Re: NSNull and distinct objective-C type
  • Previous by thread: Re: NSNull and distinct objective-C type
  • Next by thread: Re: NSNull and distinct objective-C type
  • Index(es):
    • Date
    • Thread