ImageAndTextCell.h
author Jens Alfke <jens@mooseyard.com>
Wed May 20 08:34:04 2009 -0700 (2009-05-20)
changeset 32 222393534845
permissions -rw-r--r--
Retain/release MYDirectoryWatcher's _standardizedPath, for non-GC compatibility.
     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