• 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: Child Windows and Mouse Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Child Windows and Mouse Events


  • Subject: Re: Child Windows and Mouse Events
  • From: Andreas Mayer <email@hidden>
  • Date: Wed, 16 Feb 2005 00:23:51 +0100


Am 15. Feb 2005 um 07:45 Uhr schrieb Greg:

I found that only a window that has the titled mask set will be allowed to become key. Is this correct?

No.

From the NSWindow documentation:

-------
canBecomeKeyWindow

- (BOOL)canBecomeKeyWindow
Returns YES if the receiver can become the key window, NO if it can’t. Attempts to make the receiver the key window are abandoned if this method returns NO. NSWindow’s implementation returns YES if the receiver has a title bar or a resize bar, NO otherwise.
-------


So subclass NSWindow and overwrite canBecomeKeyWindow to return YES, and your window can be made key regardless of the existence of a title bar.


Andreas _______________________________________________ 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: 
 >Child Windows and Mouse Events (From: Greg <email@hidden>)
 >Re: Child Windows and Mouse Events (From: j o a r <email@hidden>)
 >Re: Child Windows and Mouse Events (From: Greg <email@hidden>)
 >Re: Child Windows and Mouse Events (From: j o a r <email@hidden>)
 >Re: Child Windows and Mouse Events (From: Greg <email@hidden>)
 >Re: Child Windows and Mouse Events (From: j o a r <email@hidden>)
 >Re: Child Windows and Mouse Events (From: Greg <email@hidden>)

  • Prev by Date: Re: Saving NSObjectController info
  • Next by Date: Observing NSArrayController's selection doesn't appear to be consistent
  • Previous by thread: Re: Child Windows and Mouse Events
  • Next by thread: NSTimer crashes after invalidation
  • Index(es):
    • Date
    • Thread