• 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: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!? (From: Marco Binder <email@hidden>)

  • Prev by Date: Re: Table View Blues (summary)
  • Next by Date: Re: Setting the Format for Dates
  • Previous by thread: Re: Solved: widgets don't work properly in a bordrless window?!?
  • Next by thread: Re: Solved: Focused UI element, UNSOLVED: widgets don't work properly in a bordrless window?!?
  • Index(es):
    • Date
    • Thread