Re: How to store NSRect as Core Data attribute?
Re: How to store NSRect as Core Data attribute?
- Subject: Re: How to store NSRect as Core Data attribute?
- From: Thomas Engelmeier <email@hidden>
- Date: Wed, 2 Apr 2008 18:58:58 +0200
On 02.04.2008, at 18:12, Ben Lachman wrote:
I think the easiest way to encode/decode NSRects for storage is
NSStringFromRect() and NSRectFromString(). Then you can just
implement a custom accessor for the property that converts in the
direction you need.
That potentially means opening Pandoras can to localisation issues.
Any time you go that route, be sure to check that code with switching
decimal separators.
In my opinion it sucks like hell when your Pages document containing a
table has all numeric data messed up due to "unparseable" numbers...
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