Re: Any examples of how to implement an inspector window?
Re: Any examples of how to implement an inspector window?
- Subject: Re: Any examples of how to implement an inspector window?
- From: Murat Konar <email@hidden>
- Date: Thu, 15 Nov 2007 10:30:24 -0800
You should get Aaron Hillegass's book on Cocoa. It will save you hours.
Apple's docs are actually quite good so that's where you can look for
things. Also good places are the list archives for this list <http://
www.cocoabuilder.com>, and <http://www.cocoadev.com/>.
A more directed hint is to read up on "notifications" and
"delegation". Then look at the docs for NSWindow. Windows post
notifications when they become resign "key" or "main" (note that
there is a difference between being "key" and being "main". You will
probably be interested in knowing when your windows become or resign
"main"). They also call delegate methods. Which technique you use is
up to you.
_murat
On Nov 15, 2007, at 9:39 AM, Rick Mann wrote:
I'm new to Cocoa (long time Carbon), and don't yet know where to
look for many things.
I've pulled a few examples of some UI techniques from the Apple dev
pages, but I haven't come across something that shows me how to
trigger the changes to a window when the selection changes.
In this case, I need to know when the main window changes. At the
very least, I need to change the title of my Inspector window to
indicate which document it's targeting. My main windows (my
documents' windows) typically have a single custom view, so changes
to the selected object within a window will be obvious, I think
(when I finally get to implementing it).
But for now, where would I add code to change the appearance of my
inspector window when the main window changes?
_______________________________________________
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