• 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: NSMenuItem - setHidden
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMenuItem - setHidden


  • Subject: Re: NSMenuItem - setHidden
  • From: Stuart Green <email@hidden>
  • Date: Sat, 23 Aug 2008 09:52:38 +0100

So I could use this method to enable/disable the menu item rather than hide it? That may look a bit more pleasing to the user.

Will give it a go.

Thanks.

Regards,

Stuart

Sent from my iPhone

On 23 Aug 2008, at 02:53, Jonathan Hess <email@hidden> wrote:


On Aug 22, 2008, at 6:15 PM, Graham Cox wrote:


On 23 Aug 2008, at 5:30 am, chaitanya pandit wrote:

[itemToBeHidden setAutoEnablesItems:NO];
Don't call setAutoEnblesItems on the item you want to hide (NSMenuItem) call it on the menu to which the item belongs (or is gonna get added- NSMenu class)



-setAutoEnablesItems: doesn't affect visible/hidden, it affects checked/unchecked. So it's unlikely to bear on this problem.

I think you meant enabled/disabled, instead of checked/unchecked.

Jon Hess



hth,

Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: NSMenuItem - setHidden (From: chaitanya pandit <email@hidden>)
 >Re: NSMenuItem - setHidden (From: Graham Cox <email@hidden>)
 >Re: NSMenuItem - setHidden (From: Jonathan Hess <email@hidden>)

  • Prev by Date: Re: textfield not updating with bindings - Whats wrong?
  • Next by Date: Re: UTI Example
  • Previous by thread: Re: NSMenuItem - setHidden
  • Next by thread: Noobie CalEvent question
  • Index(es):
    • Date
    • Thread