• 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: select a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: select a window


  • Subject: Re: select a window
  • From: Tjark Derlien <email@hidden>
  • Date: Fri, 7 Apr 2006 12:47:58 +0200

I'm not sure what you want in detail, but did you try NSApplication's "- (NSWindow *)keyWindow"? This method returns the windows that is currently key (receives keyboard events). Another candidate might be "- (NSWindow *)mainWindow".

To get the document associated with a window, you can use NSDocumentController's "- (id)documentForWindow:(NSWindow *)window".


- Tjark


Am 07.04.2006 um 10:52 schrieb Yorh:

Hi to all,

I wrote an app that use NSWindowController class.
I need to know the when I select a certain window.
I have a a controller and a lot of NSWindowController objects ... Is there any methods to know the selected window?


Thank you all
Yorh

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40derlien.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >select a window (From: Yorh <email@hidden>)

  • Prev by Date: select a window
  • Next by Date: Re: bindings screwup
  • Previous by thread: select a window
  • Next by thread: Setting the default font of an NSTextView...
  • Index(es):
    • Date
    • Thread