Created
June 10, 2010 20:43
-
-
Save luebken/433605 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import <Foundation/CPObject.j> | |
@implementation AppController : CPObject | |
{ | |
@outlet CPWindow theWindow; | |
@outlet CPTableView table; | |
} | |
- (void)applicationDidFinishLaunching:(CPNotification)aNotification { } | |
- (void)awakeFromCib | |
{ | |
var column = [[CPTableColumn alloc] init]; | |
[[column headerView] setStringValue:@"Title"]; | |
[table addTableColumn:column]; | |
[table setDataSource:self]; | |
} | |
- (int)numberOfRowsInTableView:(CPTableView)tableView | |
{ | |
return 2; | |
} | |
- (id)tableView:(CPTableView)tableView | |
objectValueForTableColumn:(CPTableColumn)tableColumn | |
row:(int)row | |
{ | |
return @"Test"; | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment