Re: NSKeyedArchiver and NSPoints
Re: NSKeyedArchiver and NSPoints
- Subject: Re: NSKeyedArchiver and NSPoints
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 28 Apr 2010 23:08:20 +0200
Le 28 avr. 2010 à 21:45, Raffael Cavallaro a écrit :
>
> On Apr 28, 2010, at 3:31 PM, Quincey Morris wrote:
>
>> So my original point stands: I want my original bit pattern back again after unarchiving, and I don't believe that a finite decimal string will guarantee that.
>
> As a practical matter, a simple test shows that converting the point:
>
> 3.141592653589793, 3.141592653589793
>
> using NSStringFromPoint gives you the string:
>
> "{3.14159, 3.14159}"
>
> so, yeah, you're not getting what you want.
>
Don't worry, this is not what NSCoder does anyway ;-)
-- Jean-Daniel
_______________________________________________
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