• 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: Sign extension in NSNumber / 10.4 SDK???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sign extension in NSNumber / 10.4 SDK???


  • Subject: Re: Sign extension in NSNumber / 10.4 SDK???
  • From: Thomas Engelmeier <email@hidden>
  • Date: Thu, 17 Jul 2008 19:18:08 +0200

Am 17.07.2008 um 18:55 schrieb Jens Alfke:

What are my best options to get around that? (Except of using the next larger NSNumber variants to store unsigned values in order to prevent unwanted sign expensions for unsigned values)?

Either require 10.5, or use a larger size. The problem is that NSNumber is just a bridge to CFNumber, which didn't support unsigned types until 10.5. So on 10.4, the fact that you were storing an unsigned 32-bit value got lost when you created the NSNumber.

Thanks for confirming. I'll probably end up writing enhancement requests to documentation so this behavior gets documented.


I can't demand Leopard in that case as it's a Tiger-targeting PTP implementation working around some Image Capture shortcomings.
It ran into pretty some problems mixing and matching my stored (int based) key-value lookup tables with camera returned (uint16) values after switching from (Leopard only) prototype to an Tiger SDK "elaborated prototype"..


Best Regards,
		Tom_E


_______________________________________________

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: Sign extension in NSNumber / 10.4 SDK???
      • From: Jens Alfke <email@hidden>
References: 
 >Sign extension in NSNumber / 10.4 SDK??? (From: Thomas Engelmeier <email@hidden>)
 >Re: Sign extension in NSNumber / 10.4 SDK??? (From: Jens Alfke <email@hidden>)

  • Prev by Date: IB calls Java method?
  • Next by Date: Re: NSButton alternate image problem - not redrawing
  • Previous by thread: Re: Sign extension in NSNumber / 10.4 SDK???
  • Next by thread: Re: Sign extension in NSNumber / 10.4 SDK???
  • Index(es):
    • Date
    • Thread