Re: Child Windows and Mouse Events
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