• 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: Kyle Sluder <email@hidden>
  • Date: Thu, 25 Oct 2012 15:24:46 -0700

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.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: Binding InfoPanel to currentDocument
      • From: Seth Willits <email@hidden>
References: 
 >Binding InfoPanel to currentDocument (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Binding InfoPanel to currentDocument (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: Why does a custom CALayer property work differently from a standard one?
  • Next by Date: Re: App rejection due to app-sandboxing invalid entitlement
  • Previous by thread: Re: Binding InfoPanel to currentDocument
  • Next by thread: Re: Binding InfoPanel to currentDocument
  • Index(es):
    • Date
    • Thread