• 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: File's Owner, NSWindowController, KVO, bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File's Owner, NSWindowController, KVO, bindings


  • Subject: Re: File's Owner, NSWindowController, KVO, bindings
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 20 Feb 2007 16:47:31 -0500
  • Organization: Rogue Research

>> If I change the File's Owner to be my NSWindowController subclass,
>> can I
>> bind the arraycontroller to 'document.managedObjectContext'?
>
>What happened when you tried it?

Sorry, I should have mentioned that I tried.  It appears to work correctly.

>> To do so, NSWindowController's 'document' would need to be KVO
>> compliant, right?
>>
>Do you plan on changing the document?

No, I don't think so.

Basically, "Document-Based Applications Overview" recommends using an
NSWindowController as File's Owner (to separate the controller layer
into view-controller and model-controller) and I wanted to go that way,
but I'm worried it will mess up the Core Data/bindings parts.  The doc
appears to pre-date Core Data.

So it's ok to bind against a key path (document.managedObjectContext)
when part of the path is not KVO compliant (document)?

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Follow-Ups:
    • Re: File's Owner, NSWindowController, KVO, bindings
      • From: mmalc crawford <email@hidden>
References: 
 >File's Owner, NSWindowController, KVO, bindings (From: "Sean McBride" <email@hidden>)
 >Re: File's Owner, NSWindowController, KVO, bindings (From: mmalc crawford <email@hidden>)

  • Prev by Date: Re: class variables
  • Next by Date: Re: When does -[NSWindow sendEvent:] beep?
  • Previous by thread: Re: File's Owner, NSWindowController, KVO, bindings
  • Next by thread: Re: File's Owner, NSWindowController, KVO, bindings
  • Index(es):
    • Date
    • Thread