• 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: Any examples of how to implement an inspector window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any examples of how to implement an inspector window?


  • Subject: Re: Any examples of how to implement an inspector window?
  • From: "Daniel T. Staal" <email@hidden>
  • Date: Thu, 15 Nov 2007 14:03:56 -0500 (EST)
  • Importance: Normal

On Thu, November 15, 2007 12:39 pm, Rick Mann said:
> 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?

I don't have examples for you, but the basic procedure would be to
register for notifications an all possible main windows, and change the
inspector's appearence on 'windowDidBecomeKey:' or 'windowDidBecomeMain:'
as approprate.  Read up on Notifications:
http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/index.html

And then take a look at NSWindow's documentation for the above methods.

Daniel T. Staal

---------------------------------------------------------------
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---------------------------------------------------------------

_______________________________________________

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: 
 >Any examples of how to implement an inspector window? (From: Rick Mann <email@hidden>)

  • Prev by Date: Weird problem with writeToUrl:ofType:error
  • Next by Date: Re: Any examples of how to implement an inspector window?
  • Previous by thread: Re: Any examples of how to implement an inspector window?
  • Next by thread: Re: Any examples of how to implement an inspector window?
  • Index(es):
    • Date
    • Thread