• 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: NSPopupButton with disabled items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPopupButton with disabled items


  • Subject: Re: NSPopupButton with disabled items
  • From: Harilaos Skiadas <email@hidden>
  • Date: Tue, 9 Nov 2004 12:13:36 -0800 (PST)

Peter

>Dear list!
>
>Is it possible to build a NSPopupButton
programatically with some of
>the
>items grayed out (disabled)? Let's say I have 10
items, and I want item
>4
>and 7 to be disabled.
>
>Best regards Peter

I haven't personally tried it, because my approach
would be to not allow those items in the menu in the
first place, but I would expect that calling
NSMenuItem's setEnabled:FALSE on those items should do
the trick.

Haris




__________________________________
Do you Yahoo!?
Check out the new Yahoo! Front Page.
www.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

  • Prev by Date: Re: New Spotlight Info
  • Next by Date: Re: New Spotlight Info
  • Previous by thread: NSPopupButton with disabled items
  • Next by thread: Cocoa speech in java
  • Index(es):
    • Date
    • Thread