Skip navigation.
 
mlRe: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
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.

Related mailsAuthorDate
mlFocused UI element Ondra Cada Nov 20, 02:33
mlSolved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!? Ondra Cada Nov 20, 03:24
mlRe: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!? Marco Binder Nov 20, 12:23
mlSolved: widgets don't work properly in a bordrless window?!? Ondra Cada Nov 20, 14:54
mlRe: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!? Andreas Mayer Nov 20, 15:50
mlRe: Solved: widgets don't work properly in a bordrless window?!? Clark S. Cox III Nov 20, 20:46
mlRe: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!? Marcel Weiher Nov 20, 22:39
mlRe: Solved: widgets don't work properly in a bordrless window?!? Sheehan Olver Nov 20, 22:55
mlRe: Solved: widgets don't work properly in a bordrless window?!? Ondra Cada Nov 20, 23:03