![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/share/GNUstep/Documentation/Developer/Gui/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSMenuItem</title> </head> <body> <font face="serif"> <a href="Gui.html">Up</a> <br /> <h1><a name="title$NSMenuItem">NSMenuItem</a></h1> <h3>Authors</h3> <dl> <dt>Ovidiu Predescu (<a href="mailto:ovidiu@net-community.com"><code>ovidiu@net-community.com</code></a>)</dt> <dd> </dd> <dt>David Lazaro Saz (<a href="mailto:khelekir@encomix.es"><code>khelekir@encomix.es</code></a>)</dt> <dd> </dd> </dl> <blockquote> The menu cell class. </blockquote> <p><b>Copyright:</b> (C) 1996 Free Software Foundation, Inc.</p> <div> <hr width="50%" align="left" /> <h3>Contents -</h3> <ol> <li> <a href="#001000000000">Software documentation for the NSMenuItem class</a> </li> <li> <a href="#002000000000">Software documentation for the NSMenuItem(GNUstepExtra) category</a> </li> <li> <a href="#003000000000">Software documentation for the NSMenuItem protocol</a> </li> </ol> <hr width="50%" align="left" /> </div> <h1><a name="001000000000"> Software documentation for the NSMenuItem class </a></h1> <h2><a name="class$NSMenuItem">NSMenuItem</a> : <a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSMenuItem.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="#protocol$(NSMenuItem)">NSMenuItem</a></dd> <dd>NSValidatedUserInterfaceItem</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="50%" align="left" /> <a href="#_NSMenuItem_ivars">Instance Variables</a> <br/><br/> <a name="_NSMenuItem_ivars"/> <br/><hr width="50%" align="left" /> <h2>Instance Variables for NSMenuItem Class</h2> <h3><a name="ivariable$NSMenuItem*_action">_action</a></h3> @protected SEL <b>_action</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_changesState">_changesState</a></h3> @protected BOOL <b>_changesState</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_enabled">_enabled</a></h3> @protected BOOL <b>_enabled</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_image">_image</a></h3> @protected NSImage* <b>_image</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_indentation">_indentation</a></h3> @protected char <b>_indentation</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_isAlternate">_isAlternate</a></h3> @protected BOOL <b>_isAlternate</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_keyEquivalent">_keyEquivalent</a></h3> @protected NSString* <b>_keyEquivalent</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_keyEquivalentModifierMask">_keyEquivalentModifierMask</a></h3> @protected NSUInteger <b>_keyEquivalentModifierMask</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_menu">_menu</a></h3> @protected NSMenu* <b>_menu</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_mixedStateImage">_mixedStateImage</a></h3> @protected NSImage* <b>_mixedStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_mnemonicLocation">_mnemonicLocation</a></h3> @protected NSUInteger <b>_mnemonicLocation</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_offStateImage">_offStateImage</a></h3> @protected NSImage* <b>_offStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_onStateImage">_onStateImage</a></h3> @protected NSImage* <b>_onStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_representedObject">_representedObject</a></h3> @protected id <b>_representedObject</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_state">_state</a></h3> @protected NSInteger <b>_state</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_submenu">_submenu</a></h3> @protected NSMenu* <b>_submenu</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_tag">_tag</a></h3> @protected NSInteger <b>_tag</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_target">_target</a></h3> @protected id <b>_target</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_title">_title</a></h3> @protected NSString* <b>_title</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <h3><a name="ivariable$NSMenuItem*_toolTip">_toolTip</a></h3> @protected NSString* <b>_toolTip</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Warning</em> the underscore at the start of the name of this instance variable indicates that, even though it is not technically <em>private</em>, it is intended for internal use within the package, and you should not use the variable in other code. </div> <hr width="25%" align="left" /> <br/><hr width="50%" align="left" /><br/> <h1><a name="002000000000"> Software documentation for the NSMenuItem(GNUstepExtra) category </a></h1> <h2><a rel="gsdoc" href="#class$NSMenuItem">NSMenuItem</a>(<a name="category$NSMenuItem(GNUstepExtra)">GNUstepExtra</a>)</h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSMenuItem.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> Not in OpenStep/MacOS-X</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSMenuItem.html#method$NSMenuItem(GNUstepExtra)-changesState">-changesState</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$NSMenuItem(GNUstepExtra)-setChangesState$">-setChangesState:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSMenuItem(GNUstepExtra)-changesState">changesState </a></h3> - (BOOL) <b>changesState</b>;<br /> <div class="availability"> <b>Availability:</b> Not in OpenStep/MacOS-X</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMenuItem(GNUstepExtra)-setChangesState$">setChangesState: </a></h3> - (void) <b>setChangesState:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> Not in OpenStep/MacOS-X</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <h1><a name="003000000000"> Software documentation for the NSMenuItem protocol </a></h1> <h2><a name="protocol$(NSMenuItem)">NSMenuItem</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>AppKit/NSMenuItem.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd>NSValidatedUserInterfaceItem</dd> <dd><a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSObject.html#protocol$(NSCopying)">NSCopying</a></dd> <dd><a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSObject.html#protocol$(NSCoding)">NSCoding</a></dd> <dd><a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSObject.html#protocol$(NSObject)">NSObject</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Specifies the methods that an object must implement if it is to be placed in a menu as a menu item. The <a rel="gsdoc" href="#class$NSMenuItem">NSMenuItem</a> class provides a reference implementation suitable for most uses. </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)+separatorItem">+separatorItem</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)+setUsesUserKeyEquivalents$">+setUsesUserKeyEquivalents:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)+usesUserKeyEquivalents">+usesUserKeyEquivalents</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-action">-action</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-attributedTitle">-attributedTitle</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-hasSubmenu">-hasSubmenu</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-image">-image</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-indentationLevel">-indentationLevel</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-initWithTitle$action$keyEquivalent$">-initWithTitle:action:keyEquivalent:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-isAlternate">-isAlternate</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-isEnabled">-isEnabled</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-isSeparatorItem">-isSeparatorItem</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-keyEquivalent">-keyEquivalent</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-keyEquivalentModifierMask">-keyEquivalentModifierMask</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-menu">-menu</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-mixedStateImage">-mixedStateImage</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-mnemonic">-mnemonic</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-mnemonicLocation">-mnemonicLocation</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-offStateImage">-offStateImage</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-onStateImage">-onStateImage</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-representedObject">-representedObject</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setAction$">-setAction:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setAlternate$">-setAlternate:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setAttributedTitle$">-setAttributedTitle:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setEnabled$">-setEnabled:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setImage$">-setImage:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setIndentationLevel$">-setIndentationLevel:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setKeyEquivalent$">-setKeyEquivalent:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setKeyEquivalentModifierMask$">-setKeyEquivalentModifierMask:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setMenu$">-setMenu:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setMixedStateImage$">-setMixedStateImage:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setMnemonicLocation$">-setMnemonicLocation:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setOffStateImage$">-setOffStateImage:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setOnStateImage$">-setOnStateImage:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setRepresentedObject$">-setRepresentedObject:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setState$">-setState:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setSubmenu$">-setSubmenu:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setTag$">-setTag:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setTarget$">-setTarget:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setTitle$">-setTitle:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setTitleWithMnemonic$">-setTitleWithMnemonic:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-setToolTip$">-setToolTip:</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-state">-state</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-submenu">-submenu</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-tag">-tag</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-target">-target</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-title">-title</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-toolTip">-toolTip</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-userKeyEquivalent">-userKeyEquivalent</a></li> <li><a rel="gsdoc" href="NSMenuItem.html#method$(NSMenuItem)-userKeyEquivalentModifierMask">-userKeyEquivalentModifierMask</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$(NSMenuItem)+separatorItem">separatorItem </a></h3> + (id<<a rel="gsdoc" href="#protocol$(NSMenuItem)">NSMenuItem</a>>) <b>separatorItem</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns a seperator. This is just a blank menu item which serves to divide the menu into seperate parts. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)+setUsesUserKeyEquivalents$">setUsesUserKeyEquivalents: </a></h3> + (void) <b>setUsesUserKeyEquivalents:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets a <var>flag</var> that, when set to <code>YES</code>, objects of this class will use user defined key equivalents. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)+usesUserKeyEquivalents">usesUserKeyEquivalents </a></h3> + (BOOL) <b>usesUserKeyEquivalents</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns a flag which indicates if the receiver will use user defined key equivalents. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-action">action </a></h3> - (SEL) <b>action</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the action of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-attributedTitle">attributedTitle </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSAttributedString.html#class$NSAttributedString">NSAttributedString</a>*) <b>attributedTitle</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> </p> <p> Returns the menu item's title as an attributed string. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-hasSubmenu">hasSubmenu </a></h3> - (BOOL) <b>hasSubmenu</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns a boolean indicating if the receiver has a sub menu. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-image">image </a></h3> - (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>image</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the image to be displayed in the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-indentationLevel">indentationLevel </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>indentationLevel</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> </p> <p> Returns the indentation level, a number between 0 and 15. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-initWithTitle$action$keyEquivalent$">initWithTitle: action: keyEquivalent: </a></h3> - (id) <b>initWithTitle:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)aString<b> action:</b> (SEL)aSelector<b> keyEquivalent:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)charCode;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Initializes the receiver with <var>aString</var> as the title. The method called with the menu is selected is represented by <var>aSelector</var>. The key equivalent which can be used to invoke this menu item is represented by <var>charCode</var>. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-isAlternate">isAlternate </a></h3> - (BOOL) <b>isAlternate</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-isEnabled">isEnabled </a></h3> - (BOOL) <b>isEnabled</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns <code>YES</code> if the receiver is enabled. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-isSeparatorItem">isSeparatorItem </a></h3> - (BOOL) <b>isSeparatorItem</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns a boolean indicating if the receiver is a separator. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-keyEquivalent">keyEquivalent </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>keyEquivalent</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the key equivalent of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-keyEquivalentModifierMask">keyEquivalentModifierMask </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>keyEquivalentModifierMask</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the key equivalent mask. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-menu">menu </a></h3> - (<a rel="gsdoc" href="NSMenu.html#class$NSMenu">NSMenu</a>*) <b>menu</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the menu to which this menu item is connected. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-mixedStateImage">mixedStateImage </a></h3> - (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>mixedStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the image to be displayed when the receiver is in the "Mixed" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-mnemonic">mnemonic </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>mnemonic</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-mnemonicLocation">mnemonicLocation </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>mnemonicLocation</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-offStateImage">offStateImage </a></h3> - (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>offStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the image to be displayed when the receiver is in the "Off" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-onStateImage">onStateImage </a></h3> - (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*) <b>onStateImage</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the image to be displayed when the receiver is in the "On" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-representedObject">representedObject </a></h3> - (id) <b>representedObject</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the object represented by the reciever. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setAction$">setAction: </a></h3> - (void) <b>setAction:</b> (SEL)aSelector;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the action as <var>aSelector</var> on the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setAlternate$">setAlternate: </a></h3> - (void) <b>setAlternate:</b> (BOOL)isAlternate;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setAttributedTitle$">setAttributedTitle: </a></h3> - (void) <b>setAttributedTitle:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSAttributedString.html#class$NSAttributedString">NSAttributedString</a>*)title;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setEnabled$">setEnabled: </a></h3> - (void) <b>setEnabled:</b> (BOOL)flag;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Set the receiver to be enabled. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setImage$">setImage: </a></h3> - (void) <b>setImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)menuImage;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the image to be displayed in the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setIndentationLevel$">setIndentationLevel: </a></h3> - (void) <b>setIndentationLevel:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)level;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setKeyEquivalent$">setKeyEquivalent: </a></h3> - (void) <b>setKeyEquivalent:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)aKeyEquivalent;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the key equivalent of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setKeyEquivalentModifierMask$">setKeyEquivalentModifierMask: </a></h3> - (void) <b>setKeyEquivalentModifierMask:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)mask;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the modfier for the key equivalent. These masks indicate if the key equivalent requires ALT, Control or other key modifiers. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setMenu$">setMenu: </a></h3> - (void) <b>setMenu:</b> (<a rel="gsdoc" href="NSMenu.html#class$NSMenu">NSMenu</a>*)menu;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>menu</var> which this item belongs to. This method does not retain the object represented by <var>menu</var>. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setMixedStateImage$">setMixedStateImage: </a></h3> - (void) <b>setMixedStateImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)image;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>image</var> to be displayed when the receiver is in the "Mixed" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setMnemonicLocation$">setMnemonicLocation: </a></h3> - (void) <b>setMnemonicLocation:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSUInteger">NSUInteger</a>)location;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setOffStateImage$">setOffStateImage: </a></h3> - (void) <b>setOffStateImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)image;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>image</var> to be displayed when the receiver is in the "Off" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setOnStateImage$">setOnStateImage: </a></h3> - (void) <b>setOnStateImage:</b> (<a rel="gsdoc" href="NSImage.html#class$NSImage">NSImage</a>*)image;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>image</var> to be displayed when the receiver is in the "On" state. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setRepresentedObject$">setRepresentedObject: </a></h3> - (void) <b>setRepresentedObject:</b> (id)anObject;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the object represented by the reciever to <var>anObject</var>. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setState$">setState: </a></h3> - (void) <b>setState:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)state;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>state</var> of the the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setSubmenu$">setSubmenu: </a></h3> - (void) <b>setSubmenu:</b> (<a rel="gsdoc" href="NSMenu.html#class$NSMenu">NSMenu</a>*)submenu;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the <var>submenu</var> of the receiver. This method does retain the <var>submenu</var> object. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setTag$">setTag: </a></h3> - (void) <b>setTag:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>)anInt;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the tag of the reciever as <var>anInt</var>. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setTarget$">setTarget: </a></h3> - (void) <b>setTarget:</b> (id)anObject;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the target as <var>anObject</var> on the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setTitle$">setTitle: </a></h3> - (void) <b>setTitle:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)aString;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Sets the title of the menu, represented by <var>aString</var>. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setTitleWithMnemonic$">setTitleWithMnemonic: </a></h3> - (void) <b>setTitleWithMnemonic:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)stringWithAmpersand;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-setToolTip$">setToolTip: </a></h3> - (void) <b>setToolTip:</b> (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*)toolTip;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-state">state </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>state</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the state of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-submenu">submenu </a></h3> - (<a rel="gsdoc" href="NSMenu.html#class$NSMenu">NSMenu</a>*) <b>submenu</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the attached submenu. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-tag">tag </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSInteger">NSInteger</a>) <b>tag</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the tag of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-target">target </a></h3> - (id) <b>target</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the target of the receiver. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-title">title </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>title</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the menu's title. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-toolTip">toolTip </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>toolTip</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.3.0</div> <br /> <div class="desc"> <em>Description forthcoming.</em> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-userKeyEquivalent">userKeyEquivalent </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/Base/Reference/NSString.html#class$NSString">NSString</a>*) <b>userKeyEquivalent</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the key equivalent defined by the users defaults. </p> <p> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$(NSMenuItem)-userKeyEquivalentModifierMask">userKeyEquivalentModifierMask </a></h3> - (<a rel="gsdoc" href="/usr/share/GNUstep/Documentation/Developer/BaseAdditions/Reference/TypesAndConstants.html#type$NSUInteger">NSUInteger</a>) <b>userKeyEquivalentModifierMask</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> </p> <p> Returns the user defined key equivalent modifier. </p> <p> </div> <hr width="25%" align="left" /> </div> <br /> <a href="Gui.html">Up</a> </font> </body> </html>