Hide a menu (NSMenu)
Christiaan Hofman
cmhofman at gmail.com
Sun Oct 28 14:19:23 PDT 2007
It's not intended. Menu items that are not relevant in a particular
situation should be disabled through -validateMenuItem:. If you must,
you can remove the menu item.
Christiaan
On 28 Oct 2007, at 10:03 PM, Chad Armstrong wrote:
> Hello:
>
> In my main application's menu (MyApp > About MyApp, Preferences,
> etc...) I have a Registration menu item. Is there a simple way to
> hide the Registration menu item once the program has been
> successfully registered? I've looked through NSMenuItem and
> NSControl reference documents, but I'm not finding a simple way to
> do so. Or perhaps this is something that is not normally
> intended? Or would I be better off just inserting the menu item
> when the NIB is loading?
>
> Regards,
>
> Chad
More information about the MacOSX-dev
mailing list