Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 1.05 KB
// ImageTextCell.h
// SofaControl
// Created by Martin Kahr on 10.10.06.
// Copyright 2006 CASE Apps. All rights reserved.
#import <Cocoa/Cocoa.h>
@interface ImageTextCell : NSTextFieldCell {
NSObject *delegate;
- (void)setDataDelegate:(NSObject*)aDelegate;
@interface NSObject(ImageTextCellDelegate)
- (NSImage*)iconForCell:(ImageTextCell*)cell data:(NSObject*)data;
- (NSString*)primaryTextForCell:(ImageTextCell*)cell data:(NSObject*)data;
- (NSString*)secondaryTextForCell:(ImageTextCell*)cell data:(NSObject*)data;
// optional: give the delegate a chance to set a different data object
// This is especially useful for those cases where you do not want that
// NSCell creates copies of your data objects (e.g. Core Data objects).
// In this case you bind a value to the NSTableColumn that enables you to
// retrieve the correct data object. You retrieve the objects
// in the method dataElementForCell
- (NSObject*)dataElementForCell:(ImageTextCell*)cell;
// optional
- (BOOL)disabledForCell:(ImageTextCell*)cell data:(NSObject*)data;
Something went wrong with that request. Please try again.