ImageAndTextCell.h
author Jens Alfke <jens@mooseyard.com>
Sun May 03 10:13:31 2009 -0700 (2009-05-03)
changeset 27 256370e8935a
permissions -rw-r--r--
* MYTask: Added -commandLine, overhauled logging.
* MYDirectoryWatcher: Overhauled logging.
* MYErrorUtils: Disabled use of Security API (so it'll build without linking against Security.framework.)
     1 #import <Cocoa/Cocoa.h>
     2 
     3 /** Subclass of NSTextFieldCell which can display text and an image simultaneously.
     4     Taken directly from Apple sample code. */
     5 @interface ImageAndTextCell : NSTextFieldCell
     6 {
     7     @private
     8     NSImage *image;
     9 }
    10 
    11 - (void)setImage:(NSImage *)anImage;
    12 - (NSImage *)image;
    13 
    14 - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
    15 - (NSSize)cellSize;
    16 
    17 @end