Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
- Subject: Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
- From: Marcel Weiher <email@hidden>
- Date: Wed, 20 Nov 2002 22:39:45 +0100
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@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.