• 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: Converting to NSPersistentDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Converting to NSPersistentDocument


  • Subject: Re: Converting to NSPersistentDocument
  • From: Steven Hamilton <email@hidden>
  • Date: Thu, 19 Jun 2008 19:54:52 +1000

You do rock sir!

Thanks a lot.


On 19/06/2008, at 7:45 PM, mmalc Crawford wrote:


On Jun 19, 2008, at 2:38 AM, Steven Hamilton wrote:

What I don't understand is how to bind to the managedObjectContext. As far as I can tell in each windows .nib file I set File's Owner to be my subclassed WindowController. This doesn't contain the MOC so therefore I can't bind to it. NSDocument has the MOC but that isn't available in the list of bindable objects.
Do I have the design wrong here? Should I set my subclassed windowcontrollers to be each nibs FilesOwner? How do I reach the managedObjectContext?

[File's Owner].document.managedObjectContext

mmalc


_______________________________________________

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


References: 
 >Converting to NSPersistentDocument (From: Steven Hamilton <email@hidden>)
 >Re: Converting to NSPersistentDocument (From: "Hamish Allan" <email@hidden>)
 >Re: Converting to NSPersistentDocument (From: Steven Hamilton <email@hidden>)
 >Re: Converting to NSPersistentDocument (From: mmalc Crawford <email@hidden>)

  • Prev by Date: Re: Where does the undo manager come from?
  • Next by Date: Re: Converting HID keyboards usages to characters ?
  • Previous by thread: Re: Converting to NSPersistentDocument
  • Next by thread: Trying to install kEventAppSystemUIModeChanged using NSAppleEventManager.
  • Index(es):
    • Date
    • Thread