Moved rowHeight binding of PlaylistView from IB into code.

CQTexperiment
matthewleon 2008-02-18 10:21:34 +00:00
parent ea427c9033
commit a02859a3fc
3 changed files with 2642 additions and 2820 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,15 +25,21 @@
NSControlSize s = NSSmallControlSize;
NSFont *f = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:s]];
// NSFont *bf = [[NSFontManager sharedFontManager] convertFont:f toHaveTrait:NSBoldFontMask];
NSDictionary *bindOptions =
[NSDictionary dictionaryWithObject:@"FontSizetoLineHeightTransformer"
forKey:NSValueTransformerNameBindingOption];
[self bind:@"rowHeight"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.fontSize"
options:bindOptions];
for(NSTableColumn *col in [self tableColumns])
{
[[col dataCell] setControlSize:s];
[[col dataCell] setFont:f];
[col bind:@"fontSize"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.fontSize"
options:nil];
[col bind:@"fontSize"
toObject:[NSUserDefaultsController sharedUserDefaultsController]
withKeyPath:@"values.fontSize"
options:nil];
}
NSTableHeaderView *currentTableHeaderView = [self headerView];

File diff suppressed because it is too large Load Diff