Re: NSNotFound signed???
Re: NSNotFound signed???
- Subject: Re: NSNotFound signed???
- From: Quincey Morris <email@hidden>
- Date: Wed, 12 Jun 2013 00:52:40 -0700
On Jun 12, 2013, at 00:42 , Quincey Morris <email@hidden> wrote:
> If you archive a 64-bit NSNotFound, it's no longer NSNotFound when unarchived on a 32-bit architecture, and vice versa.
Oops, just to clarify:
I don't mean there's anything wrong with the archiving or unarchiving per se.
It's no longer NSNotFound when you encode/decode a NSUInteger/NSInteger variable, because there'll be truncation or "incorrect" sign extension of the scalar value, in one direction or the other.
_______________________________________________
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