CoreData, NSDocument and NSApplication
CoreData, NSDocument and NSApplication
- Subject: CoreData, NSDocument and NSApplication
- From: Andrew Bush <email@hidden>
- Date: Thu, 12 Oct 2006 01:46:49 +1300
Hi all,
ok, so Im rather new to the CoreData stuff and Im trying to retrofit it
onto an existing application.
The existing application is a multiple document application that opens
and displays various types of files using the very boring, very cool
framework that is provided by cocoa.
Ive created a datastore file, and added some entities and some
attributes.
Ive added a NSArrayController to the document nib and bound it to the
file owner.
If I change the super of my document subclass to NSPersistentDocument
then everything appears to work honkydory.
the problem is that what I _want_ is to have a single datastore that
every document accesses, and not a separate one for every document.
so how can I set things up so that every document is accessing the same
central datastore? I tried binding the NSArrayController to the
sharedApplication, but that just throws an error.
whats the best way to do this?
Yours cheerfully,
Andrew Bush
_______________________________________________
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