Re: Designing inspector palettes
Re: Designing inspector palettes
- Subject: Re: Designing inspector palettes
- From: "John C. Randolph" <email@hidden>
- Date: Fri, 26 Oct 2001 10:37:46 -0700
On Friday, October 26, 2001, at 10:12 AM, Ken Tabb wrote:
Hi,
I've got an app which could make good use of an inspector palette
feature
(like the 'Info' one in IB). It too could have a popup at the top of the
inspector window, letting you select which information (in IB's case:
Attributes, Size, Connections...) to show in the rest of the inspector
window.
[1] I don't have the first idea of how to go about this. I'm guessing
that the popup is actually showing/hiding different subviews in the
palette... i.e. the Size pane is a separate view from the Connections
pane. Is this right?
Yes. Have a look at the docs on NSTabView.
[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.
-jcr
"I fear all we have done is to awaken a sleeping giant and fill him with
a terrible resolve." -Admiral Isoroku Yamamoto, Dec 7, 1941.