Public Member Functions

<XAP_CocoaPlugin_MenuItem> Protocol Reference

A reference to a context menu item. More...

#import <xap_CocoaPlugin.h>

Inheritance diagram for <XAP_CocoaPlugin_MenuItem>:
AP_CocoaPlugin_ContextMenuItem

List of all members.

Public Member Functions

(void) - setLabel:
(NSString *) - label
(void) - setTag:
(NSInteger- tag
(void) - setState:
(int) - state
(void) - setEnabled:
(BOOL) - isEnabled

Detailed Description

A reference to a context menu item.


Member Function Documentation

- (BOOL) isEnabled  
Returns:
Returns YES if the menu item is selectable.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (NSString *) label  
Returns:
The label of the context menu item.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setEnabled: (BOOL)  enabled  
Parameters:
enabled YES if the menu item should be enabled, or NO if the menu item should be greyed (i.e., non-selectable). The default is YES.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setLabel: (NSString *)  label  
Parameters:
label Set the label of the context menu item.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setState: (int)  state  
Parameters:
state To have a check (tick) beside the menu item, set the state to NSOnState, otherwise set it to NSOffState. The default is NSOffState.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (void) setTag: (NSInteger anInt  
Parameters:
anInt An integer which can be used to identify this particular object.
- (int) state  
Returns:
Returns YES if the menu item is checked (ticked).

Reimplemented in AP_CocoaPlugin_ContextMenuItem.

- (NSInteger) tag  
Returns:
The integer used to identify this particular object.

Reimplemented in AP_CocoaPlugin_ContextMenuItem.


The documentation for this protocol was generated from the following file: