• 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: "stephen joseph butler" <email@hidden>
  • Date: Wed, 9 Apr 2008 00:30:24 -0500

On Thu, Apr 3, 2008 at 4:31 AM, Daniel Thorpe <email@hidden> wrote:

> I have gone with using a ...AsString attribute and using NSRectFromString.
> Seems to work okay, although I've got no idea if it's the most efficient
> method. I think Core Data seems a little limited in that you can't store an
> NSValue object as an attribute, I'd have thought that would be obvious, as
> we use that class to store structs in collection objects....


I'm not sure, but I think the $64,000 question is how to handle (a) struct
padding and (b) endieness issues. With something like a NSRect it should be
easy (write a special case in NSValue) but for arbitrary structs the problem
is insurmountable.
_______________________________________________

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: 
 >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>)
 >Re: How to store NSRect as Core Data attribute? (From: Thomas Engelmeier <email@hidden>)
 >Re: How to store NSRect as Core Data attribute? (From: Uli Kusterer <email@hidden>)
 >Re: How to store NSRect as Core Data attribute? (From: Daniel Thorpe <email@hidden>)

  • Prev by Date: Re: How to store NSRect as Core Data attribute?
  • Next by Date: Re: Open-source NSToolbar?
  • Previous by thread: Re: How to store NSRect as Core Data attribute?
  • Next by thread: prefPane with background process
  • Index(es):
    • Date
    • Thread