FROM : Marcel Weiher
DATE : Wed Nov 20 22:39:45 2002
On Wednesday, November 20, 2002, at 12:23 Uhr, Marco Binder wrote:
> Ondra, I m not sure on this one, but the docs say:
>
> - (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 I'd guess, it returns NO for a borderless window. If I d take a
> shot on this one, I d say you ll have to make it return YES. And here
> is my question for you: is it possible to use a category to override a
> function? Or do you have to subclass NSWindow?
Ahh, thanks for that. I was starting to wonder why my Squeak
full-screen window wouldn't accept key or mouse-moved events. Now it
works like a charm.
Marcel
--
Marcel Weiher Metaobject Software Technologies
<email_removed> www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Wed Nov 20 22:39:45 2002
On Wednesday, November 20, 2002, at 12:23 Uhr, Marco Binder wrote:
> Ondra, I m not sure on this one, but the docs say:
>
> - (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 I'd guess, it returns NO for a borderless window. If I d take a
> shot on this one, I d say you ll have to make it return YES. And here
> is my question for you: is it possible to use a category to override a
> function? Or do you have to subclass NSWindow?
Ahh, thanks for that. I was starting to wonder why my Squeak
full-screen window wouldn't accept key or mouse-moved events. Now it
works like a charm.
Marcel
--
Marcel Weiher Metaobject Software Technologies
<email_removed> www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Ondra Cada | Nov 20, 02:33 | |
| Ondra Cada | Nov 20, 03:24 | |
| Marco Binder | Nov 20, 12:23 | |
| Ondra Cada | Nov 20, 14:54 | |
| Andreas Mayer | Nov 20, 15:50 | |
| Clark S. Cox III | Nov 20, 20:46 | |
| Marcel Weiher | Nov 20, 22:39 | |
| Sheehan Olver | Nov 20, 22:55 | |
| Ondra Cada | Nov 20, 23:03 |






Cocoa mail archive

