• 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
CoreData, NSDocument and NSApplication
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData, NSDocument and NSApplication
      • From: Marc Respass <email@hidden>
  • Prev by Date: Core Data Applications
  • Next by Date: Programmatically adding objects to a bound outlineview
  • Previous by thread: Re: Core Data Applications
  • Next by thread: Re: CoreData, NSDocument and NSApplication
  • Index(es):
    • Date
    • Thread