Re: FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
Re: FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
- Subject: Re: FW: GetIndMenuItemWithCommandID / SetItemCmd on 64-bit? Cocoa?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 23 Sep 2009 19:19:27 -0700
On Wed, Sep 23, 2009 at 7:09 AM, Richardson, Irina
<email@hidden> wrote:
> error = GetIndMenuItemWithCommandID( NULL,
> kHICommandHide, 1, &applicationMenu, &outIndex);
Cocoa doesn't have this concept of command IDs. It looks like you
want to remove the hide menu item's key equivalent. In that case,
open MainMenu.xib and delete the Hide menu item.
Just like it tells you to do in TN2062 where this code was copy-pasted
out of: http://developer.apple.com/mac/library/technotes/tn2002/tn2062.html
--Kyle Sluder
_______________________________________________
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