• 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: Peter Ammon <email@hidden>
  • Date: Fri, 22 Aug 2008 14:14:19 -0700


On Aug 22, 2008, at 6:28 AM, Stuart Green wrote:

Hi,

I've got a menu item in my app's root menu that I want to hide.

I've referenced it as an IBOutlet as per:

	IBOutlet id itemToBeHidden;

I'm trying to hide it as per:

	[itemToBeHidden setHidden:YES];

Problem is, item does not hide.

Any ideas?

Thanks,

The most likely reason is that you never connected the outlet, so itemToBeHidden is nil.


-Peter

_______________________________________________

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: 
 >NSMenuItem - setHidden (From: Stuart Green <email@hidden>)

  • Prev by Date: Re: Preventing windows from being dragged
  • Next by Date: Re: File Extensions Problem
  • Previous by thread: Re: NSMenuItem - setHidden
  • Next by thread: Re: NSMenuItem - setHidden
  • Index(es):
    • Date
    • Thread