• 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: Binding InfoPanel to currentDocument
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding InfoPanel to currentDocument


  • Subject: Re: Binding InfoPanel to currentDocument
  • From: Seth Willits <email@hidden>
  • Date: Thu, 25 Oct 2012 17:43:36 -0700

On Oct 25, 2012, at 3:24 PM, Kyle Sluder wrote:

> On Thu, Oct 25, 2012, at 09:42 AM, Seth Willits wrote:
>>
>> But, if you just use the -object in the notification to
>> windowDidBecomeMain: you're fine. So if you keep a reference to that
>> window/document yourself and return it from your own currentDocument
>> that'd work. You also need to watch windowWillResignMain:
>> windowWillClose: and optionally(?) applicationDidBecomeActive:  (And
>> actually, this is how Omni has been doing it for yeeeears.)
>
> NSWindow has a -document accessor, so you don't need to override
> -currentDocument.
>
> But yes, the gist of how OmniInspector works is that we listen for
> window did become/resign main notifications and prompt our inspectors to
> update themselves by traversing the responder chain of the main window.


I was not suggesting to override -[NSDocumentController currentDocument].  He has -[AppDelegate currentDocument].


--
Seth Willits




_______________________________________________

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: 
 >Binding InfoPanel to currentDocument (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Binding InfoPanel to currentDocument (From: Seth Willits <email@hidden>)
 >Re: Binding InfoPanel to currentDocument (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Why does a custom CALayer property work differently from a standard one?
  • Next by Date: Re: Object not being drawn in Cmd + N window. Why?
  • Previous by thread: Re: Binding InfoPanel to currentDocument
  • Next by thread: Re: Binding InfoPanel to currentDocument
  • Index(es):
    • Date
    • Thread