Home > Articles > Home & Office Computing > Mac OS X

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Associating Data with Menu Items

The following functions may be used by your application to associate data with menu items:

Function

Description

SetMenuItemProperty

Associates data with a menu item.

GetMenuItemPropertySize

Obtains the size of a piece of data that has been previously associated with a menu item.

GetMenuItemProperty

Obtains a piece of data that has been previously associated with a menu item.

RemoveMenuItemProperty

Removes a piece of data that has been previously associated with a menu item.


Note that these functions require a command ID to be passed in their second parameter. Accordingly, they may only be used when your application uses command IDs to refer to the relevant menu items.

  • + Share This
  • 🔖 Save To Your Account