• 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
need to disable a custom NSToolbarItem which has a NSPopupButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: Thread Cancelation
  • Next by Date: Autoresizable NSTextField (2)
  • Previous by thread: How to create a draggable view a la Stickies.app?
  • Next by thread: Autoresizable NSTextField (2)
  • Index(es):
    • Date
    • Thread