• 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
Encoding NSUInteger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoding NSUInteger


  • Subject: Encoding NSUInteger
  • From: Hans van der Meer <email@hidden>
  • Date: Sun, 6 Jan 2008 21:34:27 +0100

Making the transition to code that will be prepared for 64 bit may the need arise, I changed (with the tops script) the integers to the recommended NSInteger's and NSUInteger's.

Now in NSCoder I do find an encodeInteger:forKey: and decodeInteger:forKey: for NSInteger, but the corresponding methods for NSUInteger are absent.
In my code I have NSUInteger's to encode/decode and I would like to do this in the correct manner.


Can I use the NSInteger coding methods directly with the NSUInteger's? Or do I need some casting or other magic to get all the bits straight?

Hans van der Meer




_______________________________________________

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


  • Follow-Ups:
    • Re: Encoding NSUInteger
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Validity of a path
  • Next by Date: Re: NSMatrix: does it have an delegate method...
  • Previous by thread: Merging Core Data models from plugins
  • Next by thread: Re: Encoding NSUInteger
  • Index(es):
    • Date
    • Thread