suitmymind (owner)

Revisions

gist: 234017 Download_button fork
public
Public Clone URL: git://gist.github.com/234017.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- (void)awakeFromCib
{
    // This is called when the cib is done loading.
    // You can implement this method on any object instantiated from a Cib.
    // It's a useful hook for setting up current UI values, and other things.
    
    [theTableView setUsesAlternatingRowBackgroundColors:YES];
    
    var column = [theTableView tableColumnWithIdentifier:@"TwitterUserName"];
    [column setHeaderView:[CPTextField textFieldWithStringValue:@"Twitter User Name" placeholder:@"" width:[column width]]];
    [[column headerView] setNeedsDisplay:YES];
    [theTableView setNeedsDisplay:YES];
    [theTableView reloadData];
    
    var column = [theTableView tableColumnWithIdentifier:@"Tweet"];
    [column setHeaderView:[CPTextField textFieldWithStringValue:@"Tweet" placeholder:@"" width:[column width]]];
    
    CPLog.warn([[column headerView] stringValue]); // -> Tweet
    CPLog.warn([column headerView]); // -> <CPTextField 0x002474>
    CPLog.warn([theTableView tableColumns]); // -> <CPTableColumn 0x001fc8>,<CPTableColumn 0x002021>
    
    // In this case, we want the window from Cib to become our full browser window
    [theWindow setFullBridge:YES];
}