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.)
jens@20
     1
#import <Cocoa/Cocoa.h>
jens@20
     2
jens@20
     3
/** Subclass of NSTextFieldCell which can display text and an image simultaneously.
jens@20
     4
    Taken directly from Apple sample code. */
jens@20
     5
@interface ImageAndTextCell : NSTextFieldCell
jens@20
     6
{
jens@20
     7
    @private
jens@20
     8
    NSImage *image;
jens@20
     9
}
jens@20
    10
jens@20
    11
- (void)setImage:(NSImage *)anImage;
jens@20
    12
- (NSImage *)image;
jens@20
    13
jens@20
    14
- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView;
jens@20
    15
- (NSSize)cellSize;
jens@20
    16
jens@20
    17
@end