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: Quincey Morris <email@hidden>
- Date: Wed, 28 May 2008 10:02:49 -0700
On May 28, 2008, at 00:43, 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.
You may also want to look at:
http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/04_Department/chapter_5_section_1.html#/
/apple_ref/doc/uid/TP40002832-SW1
which talks about something similar. Note particularly the section
"Adopting the Mediator Pattern", which may allow you to avoid writing
fetches, depending how this "global" data is used.
_______________________________________________
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