NoteCell.h

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#import "NoteCell.h"

@implementation NoteCell

- (void)drawInteriorWithFrame:(NSRect)theCellFrame inView:(NSView *)theControlView
{	
	NSString *helloWorld = @"Hello World";
	[helloWorld drawInRect:theCellFrame withAttributes:nil];

}

- (void) setPlaceholderString:(NSString *)string {

}

@end

NotesController

1
2
3
4
5
6
- (void)awakeFromNib {
	NoteCell *noteCell = [[NoteCell alloc] init];
	NSTableColumn *contentColumn = [[notesTableView tableColumns] objectAtIndex:1];
	[contentColumn setDataCell:noteCell];
}