ImageAndTextCell.h
author Jens Alfke <jens@mooseyard.com>
Sun May 10 18:57:43 2009 -0700 (2009-05-10)
changeset 29 8874aff14cc9
permissions -rw-r--r--
* Added kv*Set utility functions for handling KV grunge when mutating an NSSet property.
* Change CFMakeCollectable to NSMakeCollectable.
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