Re: Designing inspector palettes
Re: Designing inspector palettes
- Subject: Re: Designing inspector palettes
- From: Greg Titus <email@hidden>
- Date: Fri, 26 Oct 2001 11:16:13 -0700
On Friday, October 26, 2001, at 10:37 AM, John C. Randolph wrote:
On Friday, October 26, 2001, at 10:12 AM, Ken Tabb wrote:
[2] How do you get all the documents to use the same inspector window?
I'm guessing an NSWindowController and/or NSDocumentController is key
in
making sure there's only 1 palette, accessed by each of its documents?
The usual way to do this, is for the object that owns the inspector
window to watch for notifications that say the active document or
selected object has changed. There should be an example of this in
Sketch.app in the AppKit examples.
There is also an inspector architecture in OmniAppKit. All you need to
do is have your window/document respond to -inspectedObject, and
register inspector panels for various classes of objects that can be
inspected.
--Greg