• 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: NSBorderlessWindowMask and Grey Radio Buttons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBorderlessWindowMask and Grey Radio Buttons


  • Subject: Re: NSBorderlessWindowMask and Grey Radio Buttons
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 19 Aug 2004 08:17:58 -0700

On Wed, 18 Aug 2004 07:56:44 +0100, David Webster <email@hidden>
said:
>Before I file a bug report is the following supposed to happen?
>
>I create a boarderless panel with styleMask: NSBorderlessWindowMask and
>add a radio button.  When I display the panel in my program the
>selected button background is not blue as I would expect but grey.
>Radio buttons added to just an ordinary panel are fine.

Not sure if this is relevant, but it *might* be because your window is not
becoming key. I had a similar problem where the answer lay in NSWindow
-canBecomeKeyWindow. Note that the docs say that if your window has no title
bar, this method will return NO. Well, your window has no title bar (that is
what it means to be created with NSBorderless...). So override
-canBecomeKeyWindow to return YES and see if that helps.

If you are using an NSPanel, things get even more complicated because you
must take account of becomesKeyOnlyIfNeeded, not to mention NSView's
needsPanelToBecomeKey. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Build rule "depends on itself?" [SOLVED]
  • Next by Date: Re: code-completion in 1.5 buggy? (2)
  • Previous by thread: NSBorderlessWindowMask and Grey Radio Buttons
  • Next by thread: Re: NSBorderlessWindowMask and Grey Radio Buttons
  • Index(es):
    • Date
    • Thread