2001-12-17 16:51:51 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>NSButtonCell</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>NSButtonCell</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt>Scott Christley(<a href="mailto:scottc@net-community.com"><code>
|
|
|
|
scottc@net-community.com
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
|
|
|
<dt>Felipe A. Rodriguez(<a href="mailto:far@ix.netcom.com"><code>
|
|
|
|
far@ix.netcom.com
|
|
|
|
</code></a>)</dt>
|
|
|
|
<dd>
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
<blockquote>
|
|
|
|
The button cell class </blockquote>
|
|
|
|
<p>Copyright: (C) 1996-1999 Free Software Foundation, Inc.</p>
|
|
|
|
<h1>
|
|
|
|
Software documentation for the NSButtonCell class
|
|
|
|
</h1>
|
|
|
|
<h2><a name="class$NSButtonCell">NSButtonCell</a> : <a href="NSActionCell.html#class$NSActionCell">NSActionCell</a></h2>
|
|
|
|
Declared: AppKit/NSButtonCell.h<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<h3>alternateImage</a></h3>
|
|
|
|
- (<a href="NSImage.html#class$NSImage">NSImage</a>*) <b>alternateImage</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>alternateMnemonic</a></h3>
|
|
|
|
- (NSString*) <b>alternateMnemonic</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>alternateMnemonicLocation</a></h3>
|
|
|
|
- (unsigned) <b>alternateMnemonicLocation</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>alternateTitle</a></h3>
|
|
|
|
- (NSString*) <b>alternateTitle</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>attributedAlternateTitle</a></h3>
|
|
|
|
- (NSAttributedString*) <b>attributedAlternateTitle</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>attributedTitle</a></h3>
|
|
|
|
- (NSAttributedString*) <b>attributedTitle</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>bezelStyle</a></h3>
|
|
|
|
- (NSBezelStyle) <b>bezelStyle</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>getPeriodicDelay:interval:</a></h3>
|
|
|
|
- (void) <b>getPeriodicDelay:</b> (float*)delay<b> interval:</b> (float*)interval;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>gradientType</a></h3>
|
|
|
|
- (NSGradientType) <b>gradientType</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>highlightsBy</a></h3>
|
|
|
|
- (int) <b>highlightsBy</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>imageDimsWhenDisabled</a></h3>
|
|
|
|
- (BOOL) <b>imageDimsWhenDisabled</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>imagePosition</a></h3>
|
|
|
|
- (NSCellImagePosition) <b>imagePosition</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>isTransparent</a></h3>
|
|
|
|
- (BOOL) <b>isTransparent</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>keyEquivalent</a></h3>
|
|
|
|
- (NSString*) <b>keyEquivalent</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>keyEquivalentFont</a></h3>
|
|
|
|
- (<a href="NSFont.html#class$NSFont">NSFont</a>*) <b>keyEquivalentFont</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>keyEquivalentModifierMask</a></h3>
|
|
|
|
- (unsigned int) <b>keyEquivalentModifierMask</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>mouseEntered:</a></h3>
|
|
|
|
- (void) <b>mouseEntered:</b> (<a href="NSEvent.html#class$NSEvent">NSEvent</a>*)event;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>mouseExited:</a></h3>
|
|
|
|
- (void) <b>mouseExited:</b> (<a href="NSEvent.html#class$NSEvent">NSEvent</a>*)event;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>performClick:</a></h3>
|
|
|
|
- (void) <b>performClick:</b> (id)sender;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAlternateImage:</a></h3>
|
|
|
|
- (void) <b>setAlternateImage:</b> (<a href="NSImage.html#class$NSImage">NSImage</a>*)anImage;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAlternateMnemonicLocation:</a></h3>
|
|
|
|
- (void) <b>setAlternateMnemonicLocation:</b> (unsigned)location;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAlternateTitle:</a></h3>
|
|
|
|
- (void) <b>setAlternateTitle:</b> (NSString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAlternateTitleWithMnemonic:</a></h3>
|
|
|
|
- (void) <b>setAlternateTitleWithMnemonic:</b> (NSString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAttributedAlternateTitle:</a></h3>
|
|
|
|
- (void) <b>setAttributedAlternateTitle:</b> (NSAttributedString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setAttributedTitle:</a></h3>
|
|
|
|
- (void) <b>setAttributedTitle:</b> (NSAttributedString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setBezelStyle:</a></h3>
|
|
|
|
- (void) <b>setBezelStyle:</b> (NSBezelStyle)bezelStyle;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setButtonType:</a></h3>
|
|
|
|
- (void) <b>setButtonType:</b> (NSButtonType)buttonType;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setFont:</a></h3>
|
|
|
|
- (void) <b>setFont:</b> (<a href="NSFont.html#class$NSFont">NSFont</a>*)fontObject;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setGradientType:</a></h3>
|
|
|
|
- (void) <b>setGradientType:</b> (NSGradientType)gradientType;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setHighlightsBy:</a></h3>
|
|
|
|
- (void) <b>setHighlightsBy:</b> (int)mask;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setImageDimsWhenDisabled:</a></h3>
|
|
|
|
- (void) <b>setImageDimsWhenDisabled:</b> (BOOL)flag;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setImagePosition:</a></h3>
|
|
|
|
- (void) <b>setImagePosition:</b> (NSCellImagePosition)aPosition;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setKeyEquivalent:</a></h3>
|
|
|
|
- (void) <b>setKeyEquivalent:</b> (NSString*)key;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setKeyEquivalentFont:</a></h3>
|
|
|
|
- (void) <b>setKeyEquivalentFont:</b> (<a href="NSFont.html#class$NSFont">NSFont</a>*)fontObj;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setKeyEquivalentFont:size:</a></h3>
|
|
|
|
- (void) <b>setKeyEquivalentFont:</b> (NSString*)fontName<b> size:</b> (float)fontSize;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setKeyEquivalentModifierMask:</a></h3>
|
|
|
|
- (void) <b>setKeyEquivalentModifierMask:</b> (unsigned int)mask;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setPeriodicDelay:interval:</a></h3>
|
|
|
|
- (void) <b>setPeriodicDelay:</b> (float)delay<b> interval:</b> (float)interval;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setShowsBorderOnlyWhileMouseInside:</a></h3>
|
|
|
|
- (void) <b>setShowsBorderOnlyWhileMouseInside:</b> (BOOL)show;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setShowsStateBy:</a></h3>
|
|
|
|
- (void) <b>setShowsStateBy:</b> (int)mask;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setSound:</a></h3>
|
|
|
|
- (void) <b>setSound:</b> (NSSound*)aSound;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setTitle:</a></h3>
|
|
|
|
- (void) <b>setTitle:</b> (NSString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setTitleWithMnemonic:</a></h3>
|
|
|
|
- (void) <b>setTitleWithMnemonic:</b> (NSString*)aString;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>setTransparent:</a></h3>
|
|
|
|
- (void) <b>setTransparent:</b> (BOOL)flag;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>showsBorderOnlyWhileMouseInside</a></h3>
|
|
|
|
- (BOOL) <b>showsBorderOnlyWhileMouseInside</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>showsStateBy</a></h3>
|
|
|
|
- (int) <b>showsStateBy</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>sound</a></h3>
|
|
|
|
- (NSSound*) <b>sound</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<h3>title</a></h3>
|
|
|
|
- (NSString*) <b>title</b>;<br />
|
|
|
|
<p>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
</body>
|
|
|
|
</html>
|