lotus



previous page: 3.3) My menus don't show up in the menu bar (User / Machine interaction - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.5) I use GetMenu() to find a menu in the menu bar, and then change it, but it seems I have a memory leak OR my changes don't "punch through" (User / Machine interaction - Mac Programming)

3.4) When the user selects my menus, I get strange results back; they seem to have different menu IDs than my menus? (User / Machine interaction - Mac Programming)




Description

This article is from the Mac Programming FAQ, by Jon Watte h+@austin.metrowerks.com with numerous contributions by others.

3.4) When the user selects my menus, I get strange results back; they seem to have different menu IDs than my menus? (User / Machine interaction - Mac Programming)

The Menu ID as used by the menu manager is NOT the same thing as the
MENU resource ID (used in the MBAR resource and with GetMenu()) When you
create a MENU, ResEdit sets the menu ID to the MENU resource ID, but if
you re-number the resource, you will have to open the menu in ResEdit
and change the menu ID using the "Edit MENU ID" menu item.

 

Continue to:















TOP
previous page: 3.3) My menus don't show up in the menu bar (User / Machine interaction - Mac Programming)
  
page up: Mac Programming FAQ
  
next page: 3.5) I use GetMenu() to find a menu in the menu bar, and then change it, but it seems I have a memory leak OR my changes don't "punch through" (User / Machine interaction - Mac Programming)