osx - How to hide or disable menu item in Mac OS X -
I can handle the menu with the CreateNibReference function, but I do not know how to hide or disable the menu item. In X
It seems that you are using the Carbon menu manager. In that case, if you have an As expected, call As far as I know, there is no way to "hide" a menu item with the Carbon menu manager, the closest thing I can think is that the menu item will be removed, in which case you For more detailed information on how to use these functions, see. In addition, as a side note, it is generally advised to use cocoa instead of carbonate applications. Carbon is apparently being phased out of the apple, and it can long before Apple completely rejects it. menu reef example, to disable the menu code, pass
disable menu item (menoraf, itemindex); EnableMenuItem () to re-enable the item. DeleteMenuItem () :
will use DeleteMenuItem (menuRef, itemIndex);
Comments
Post a Comment