Contents

didChangeItemNotification

Posted after a menu item in the menu changes appearance.

Declaration

class let didChangeItemNotification: NSNotification.Name

Discussion

Changes include enabling/disabling, changes in state, and changes to title. The notification object is the instance of NSMenu with the menu item that changed. The userInfo dictionary contains the following information.

Key

Value

@"NSMenuItemIndex"

An NSNumber object containing the integer index of the menu item that changed.

See Also

Notifications