Moved rowHeight binding of PlaylistView from IB into code.
parent
ea427c9033
commit
a02859a3fc
File diff suppressed because it is too large
Load Diff
|
@ -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
Loading…
Reference in New Issue