ImageAndTextCell.h
changeset 23 a910102a1c9d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ImageAndTextCell.h	Tue Apr 07 11:13:25 2009 -0700
     1.3 @@ -0,0 +1,17 @@
     1.4 +#import <Cocoa/Cocoa.h>
     1.5 +
     1.6 +/** Subclass of NSTextFieldCell which can display text and an image simultaneously.
     1.7 +    Taken directly from Apple sample code. */
     1.8 +@interface ImageAndTextCell : NSTextFieldCell
     1.9 +{
    1.10 +    @private
    1.11 +    NSImage *image;
    1.12 +}
    1.13 +
    1.14 +- (void)setImage:(NSImage *)anImage;
    1.15 +- (NSImage *)image;
    1.16 +
    1.17 +- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
    1.18 +- (NSSize)cellSize;
    1.19 +
    1.20 +@end