Moved rowHeight binding of PlaylistView from IB into code.
This commit is contained in:
parent
ea427c9033
commit
a02859a3fc
3 changed files with 2642 additions and 2820 deletions
File diff suppressed because it is too large
Load diff
|
@ -25,7 +25,13 @@
|
||||||
NSControlSize s = NSSmallControlSize;
|
NSControlSize s = NSSmallControlSize;
|
||||||
NSFont *f = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:s]];
|
NSFont *f = [NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:s]];
|
||||||
// NSFont *bf = [[NSFontManager sharedFontManager] convertFont:f toHaveTrait:NSBoldFontMask];
|
// 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])
|
for(NSTableColumn *col in [self tableColumns])
|
||||||
{
|
{
|
||||||
[[col dataCell] setControlSize:s];
|
[[col dataCell] setControlSize:s];
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue