Skip navigation.
 
mlRe: How to store NSRect as Core Data attribute?
FROM : Thomas Engelmeier
DATE : Wed Apr 02 18:58:58 2008

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

Related mailsAuthorDate
mlHow to store NSRect as Core Data attribute? Daniel Thorpe Apr 2, 13:28
mlRe: How to store NSRect as Core Data attribute? Felix Franz Apr 2, 15:11
mlRe: How to store NSRect as Core Data attribute? Ben Lachman Apr 2, 18:12
mlRe: How to store NSRect as Core Data attribute? Thomas Engelmeier Apr 2, 18:58
mlRe: How to store NSRect as Core Data attribute? Uli Kusterer Apr 2, 19:33
mlRe: How to store NSRect as Core Data attribute? Daniel Thorpe Apr 3, 11:31
mlRe: How to store NSRect as Core Data attribute? Adam P Jenkins Apr 9, 07:16
mlRe: How to store NSRect as Core Data attribute? stephen joseph but… Apr 9, 07:30
mlRe: How to store NSRect as Core Data attribute? Adam P Jenkins Apr 9, 14:43