Re: Storing miscellaneous singleton data in CoreData app?
Re: Storing miscellaneous singleton data in CoreData app?
- Subject: Re: Storing miscellaneous singleton data in CoreData app?
- From: Jens Alfke <email@hidden>
- Date: Wed, 28 May 2008 09:19:55 -0700
On 28 May '08, at 12:43 AM, Rick Mann wrote:
I also want to display some data in the detail view that is global
to the document. What's the best/easiest way to add that information
to my document and make it available to a text field via bindings?
Do I need to create additional CoreData schema? The thing is, there
should only ever be one of this global data, not many rows in a table.
I would create a new entity in your object model whose properties are
the things you want to remember.
Then when you open the data store, fetch the single instance; if there
isn't one, add one.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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