• 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: Store file properties alongside coredata?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Store file properties alongside coredata?


  • Subject: Re: Store file properties alongside coredata?
  • From: Jim Correia <email@hidden>
  • Date: Wed, 28 Jun 2006 08:46:49 -0400

On Jun 28, 2006, at 1:48 AM, Justin Bakse wrote:

I am looking for some general direction on how to go about storing a few peices of information in the files created by my core data document based app. I've done a fair amount of objective c and cocoa but the core data api is new to me, as is NSCoder and NSDocument, and in general that area, but I'm reading up.

What I would like to do is save a few key value pairs, mostly document specific preferences into a core data document. For example, there are some table views of an entity, and I'd like to remember what column was sorted, and what items were selected for next time. These seem like information that might be semi handled in the API, but there might be others that are more application specific.

Again, I'm kind of looking for a general macro view, of what to do here.

Step 1: Decide if they really are part of your data model, or auxiliary metadata.


Step 2: If they really are part of the data model, just store them there :-)

If they are metadata, you can put them in the metadata area of the store (via the metadata methods on NSPersistentStoreCoordinator.)

Jim

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Store file properties alongside coredata? (From: Justin Bakse <email@hidden>)

  • Prev by Date: Re: One of the children has a bad / missing connection
  • Next by Date: RTF incompatibilites Windows/NSAttributesString RTFFromRange:...
  • Previous by thread: Store file properties alongside coredata?
  • Next by thread: Re: Store file properties alongside coredata?
  • Index(es):
    • Date
    • Thread