NSSegmentedControl drawing problems in unified toolbar
NSSegmentedControl drawing problems in unified toolbar
- Subject: NSSegmentedControl drawing problems in unified toolbar
- From: Keith Blount <email@hidden>
- Date: Mon, 6 Feb 2006 10:17:12 -0800 (PST)
Hi,
Someone posted a similar question to the list a
year-and-a-half ago (see below), but it went
unanswered, and I can't find a solution anywhere, so I
would be very grateful if someone could offer a
solution to this one:
I have an NSSegmentedControl in my toolbar (using
NSToolbarItem's -setView: method). My toolbar has the
"unified" look, which makes regular-sized segmented
controls have the cool metallic look like in Finder
and Safari (the same as with textured windows). So
far, so good. However, in the Customize Toolbar...
sheet, the segmented control appears as a regular,
dull, Aqua control (ie. it doesn't have the cool
metallic look). I might be able to live with that, but
even worse, if you hide the toolbar and then show it
again, the segmented controls in the actual toolbar
appear with the horrible old-fashioned look until you
click on them. Horrible.
Does anybody know how to fix this behaviour? I guess I
need to file a bug, but I'm hoping there's a fix
anyway...
Many thanks in advance,
Keith
--- On Fri, 19 Nov 2004 23:19:35 +0000, Joao Pavao
<<email_removed>> wrote:
> Hi,
>
> I'm using a segmented control in a toolbar to
achieve something similar
> to the View item in the Finder's toolbars (Icon
view, List view, Column
> view). I use NSToolbarItem's -setView: method,
passing the segmented
> control as argument, to insert it in the toolbar of
a textured window.
> Everything is working as expected, except for some
inconsistencies in
> the control's appearance. I guess that the
NSSegmentedControl checks
> whether the window that contains it is textured or
not in order to
> decide the "theme" to use. You know, it draws with a
flat look in
> textured windows and with a rounder look in
traditional aqua windows.
> What happens is that when the control is inserted
and first drawn in
> the toolbar, the look is fine - it draws using the
"flat" glossy look.
> However, if the toolbar customization panel is run
(a traditional aqua
> panel, may I remind you), or if the toolbar is
hidden and then shown
> once again, the control gains its "rounder" look
until I click in it.
>
> The fact that the control acts on its own to decide
its look is a bit
> disappointing, as other controls (NSButton) usually
let us tell them
> what "look" to use (textured or plain aqua) instead
of investigating
> their window on their own.
>
> Does anyone know of an easy way to make the look of
the segmented
> control more consistent across the toolbar, the
customization panel,
> and showing/hiding the toolbar? Or is the only
viable solution to code
> a custom control/button?
>
> Thanks,
> --
> Jo�o Pav�o
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden