Skip to content

Commit

Permalink
Size columns correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Jul 28, 2011
1 parent 10de56a commit 3b42689
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions solutions/TweetyGonzalez/TweetyGonzalez/Application.m
Expand Up @@ -33,9 +33,12 @@ - (id)init {
tweetsTableView = [[NSTableView alloc] initWithFrame:NSMakeRect(0, 0, 500, 352)];
tweetsTableView.dataSource = self;
column = [[NSTableColumn new] autorelease];
column.width = 200;
[column.headerCell setStringValue:@"Author"];
[tweetsTableView addTableColumn:column];
column = [[NSTableColumn new] autorelease];
column.width = 300;
column.resizingMask = NSTableColumnAutoresizingMask;
[column.headerCell setStringValue:@"Message"];
[tweetsTableView addTableColumn:column];
scrollView.documentView = tweetsTableView;
Expand Down

0 comments on commit 3b42689

Please sign in to comment.