need to disable a custom NSToolbarItem which has a NSPopupButton
need to disable a custom NSToolbarItem which has a NSPopupButton
- Subject: need to disable a custom NSToolbarItem which has a NSPopupButton
- From: Daniel Morrow <email@hidden>
- Date: Fri, 29 Oct 2004 15:21:22 -0400
Dear list,
OK, I have a toolbar, one of the items uses a custom view, in my case,
it's an NSPopupButton.
Now, I looked around, and figured out that to disable my view, I need
to override "validate." This works fine when I'm in either "icon only"
or "icon and text" mode. The image toolbar item gets grayed and
unselectable.
But when it is in "text only" mode, it is always enabled. Which is a
problem, because then a popup menu drops down, that shouldn't be there.
I'm trying to figure out how to gray it out when it is in "text only"
mode, but I can't seem to get it to work.
And while there are some samples which show how to hook up popup
buttons to toolbars, I can't seem to find anything which shows me how
to disable the toolbar item when it is a popup menu.
Any help, and or code samples would be greatly appreciated.
Thanks,
-Dan.
_______________________________________________
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