Re: 32 -> 64 bit serializations, NSNumber, int, NSInteger
Re: 32 -> 64 bit serializations, NSNumber, int, NSInteger
- Subject: Re: 32 -> 64 bit serializations, NSNumber, int, NSInteger
- From: Philip Dow <email@hidden>
- Date: Tue, 19 Jul 2011 15:59:50 -0500
Thanks for the tips Quincey and Nick. I'll keep an eye out for the use of NSNotFound.
~Phil
On Jul 19, 2011, at 2:46 PM, Quincey Morris wrote:
> On Jul 19, 2011, at 12:32, Nick Zitzmann wrote:
>
>> The only problem I ever had with unarchiving 32-bit app archives in a 64-bit app was with longs in non-keyed archives that were encoded using @encode(long)*, and that doesn't apply to your scenario.
>
> The other issue that might rear its head is that the meaning of NSNotFound changes between 32- and 64-bit runtimes**, which makes a mess of archives that use it. The answer, of course, is to keep NSNotFound out of archives, but (as I found to my own cost) if existing code archives NSNotFound, it's really, really hard to clean the mess up.
>
>
>
> ** I mean: if you archive NSNotFound in a 32-bit application, it's no longer NSNotFound when you unarchive it in a 64-bit application. And vice versa, probably.
>
>
_______________________________________________
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: | |
| >Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}} (From: Philip Dow <email@hidden>) |
| >Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}} (From: glenn andreas <email@hidden>) |
| >Re: Reading old NSArchiver serialization, expecting CGRect, finding {?={?=ff}{?=ff}} (From: Philip Dow <email@hidden>) |
| >32 -> 64 bit serializations, NSNumber, int, NSInteger (From: Philip Dow <email@hidden>) |
| >Re: 32 -> 64 bit serializations, NSNumber, int, NSInteger (From: Nick Zitzmann <email@hidden>) |
| >Re: 32 -> 64 bit serializations, NSNumber, int, NSInteger (From: Quincey Morris <email@hidden>) |