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

NSImageCell — Mac OS X 10.0

Synopsis

This cell class is responsible for drawing an image in a frame. NSImageCell provides methods that allow clients to specify the frame style, as well as how images that do not fit in the cell bounds should be scaled.

image with no caption

@interface NSImageCell : NSCell <NSCoding, NSCopying>
                                  // Accessor Methods
   - (void)setImageAlignment:(NSImageAlignment)newAlign;
   - (NSImageAlignment)imageAlignment;
   - (void)setImageScaling:(NSImageScaling)newScaling;
   - (NSImageScaling)imageScaling;
   - (void)setImageFrameStyle:(NSImageFrameStyle)newStyle;
   - (NSImageFrameStyle)imageFrameStyle;
                                  // Methods Implementing NSCoding
   - (void)encodeWithCoder:(NSCoder *)aCoder;
   - (id)initWithCoder:(NSCoder *)aDecoder;
                                  // Methods Implementing NSCopying
   - (id)copyWithZone:(NSZone *)zone;

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