• 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: How to store NSRect as Core Data attribute?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: How to store NSRect as Core Data attribute?
      • From: Uli Kusterer <email@hidden>
References: 
 >How to store NSRect as Core Data attribute? (From: Daniel Thorpe <email@hidden>)
 >Re: How to store NSRect as Core Data attribute? (From: Ben Lachman <email@hidden>)

  • Prev by Date: Re: [NSPipe pipe] returning nil (running out of filehandles?)
  • Next by Date: Re: Southern California Coders?
  • Previous by thread: Re: How to store NSRect as Core Data attribute?
  • Next by thread: Re: How to store NSRect as Core Data attribute?
  • Index(es):
    • Date
    • Thread