O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSButtonCell — Mac OS X 10.0

Synopsis

This subclass of NSActionCell contains the majority of the functionality of a button control. NSButtonCell, like most NSCell subclasses, is responsible for the appearance of the NSButton control; NSButton serves more as a view for NSButtonCell to draw in, and most of NSButton’s API is forwarded to NSButtonCell.

image with no caption

@interface NSButtonCell : NSActionCell
                                  // Accessor Methods
   - (void)setPeriodicDelay:(float)delay 
                                 interval:(float)interval;
   - (void)setTitle:(NSString *)aString;
   - (NSString *)title;
   - (void)setAlternateTitle:(NSString *)aString;
   - (NSString *)alternateTitle;
   - (void)setImagePosition:(NSCellImagePosition)aPosition;
   - (NSCellImagePosition)imagePosition;
   - (void)setHighlightsBy:(int)aType;
   - (int)highlightsBy;
   - (void)setAttributedAlternateTitle:(NSAttributedString *)obj;
   - (NSAttributedString *)attributedAlternateTitle;
   - (void)setAttributedTitle:(NSAttributedString *)obj;
   - (NSAttributedString *)attributedTitle;
   - (void)setTransparent:(BOOL)flag;
   - (void)setSound:(NSSound *)aSound;
   - (NSSound *)sound;
   - (void)setKeyEquivalent:(NSString *)aKeyEquivalent;
   - (NSString *)keyEquivalent;
   - (void)setKeyEquivalentModifierMask:(unsigned int)mask;
   - (unsigned int)keyEquivalentModifierMask;
   - (void)setKeyEquivalentFont:(NSFont *)fontObj;
   - (NSFont *)keyEquivalentFont;
   - (void)setKeyEquivalentFont ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required