Skip to content

Commit

Permalink
fixed songs column trailing
Browse files Browse the repository at this point in the history
  • Loading branch information
tillt committed Mar 14, 2024
1 parent d32571e commit 5a22856
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 5 additions & 1 deletion PlayEm/BrowserController.m
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,8 @@ - (void)tableView:(NSTableView*)tableView sortDescriptorsDidChange:(NSArray<NSSo

- (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
NSTableCellView *result = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];
NSTableCellView* result = [tableView makeViewWithIdentifier:tableColumn.identifier owner:self];

if (result == nil)
{
result = [[NSTableCellView alloc] initWithFrame:NSMakeRect(0.0,
Expand All @@ -933,12 +934,15 @@ - (NSView*)tableView:(NSTableView*)tableView viewForTableColumn:(NSTableColumn *
14.0)];

NSTextField* tf = [[NSTextField alloc] initWithFrame:NSInsetRect(result.frame, 0, -4)];
tf.autoresizingMask = NSViewWidthSizable;
tf.editable = NO;
tf.font = [NSFont systemFontOfSize:11.0];
tf.drawsBackground = NO;
tf.bordered = NO;
tf.lineBreakMode = NSLineBreakByTruncatingTail;
tf.textColor = [NSColor secondaryLabelColor];
[result addSubview:tf];
result.autoresizingMask = NSViewHeightSizable | NSViewWidthSizable;
result.textField = tf;
result.identifier = tableColumn.identifier;
}
Expand Down
2 changes: 1 addition & 1 deletion PlayEm/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<key>CFBundleShortVersionString</key>
<string>1.2</string>
<key>CFBundleVersion</key>
<string>4721</string>
<string>4729</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.music</string>
<key>LSMinimumSystemVersion</key>
Expand Down
12 changes: 5 additions & 7 deletions PlayEm/Window & ViewControllers/WaveWindowController.m
Original file line number Diff line number Diff line change
Expand Up @@ -639,19 +639,17 @@ - (void)loadViews
_splitSelectors.identifier = @"HorizontalSplitters";
_splitSelectors.dividerStyle = NSSplitViewDividerStyleThin;

sv = [[NSScrollView alloc] initWithFrame:NSMakeRect(0.0,
0.0,
selectorTableViewWidth,
selectorTableViewHeight)];
sv = [[NSScrollView alloc] initWithFrame:NSMakeRect( 0.0,
0.0,
selectorTableViewWidth,
selectorTableViewHeight)];
sv.hasVerticalScroller = YES;
sv.autoresizingMask = kViewFullySizeable;
sv.drawsBackground = NO;
_genreTable = [[NSTableView alloc] initWithFrame:NSZeroRect];
_genreTable.style = NSTableViewStyleAutomatic;
_genreTable.backgroundColor = [NSColor clearColor];
_genreTable.tag = VIEWTAG_GENRE;
_genreTable.backgroundColor = [NSColor clearColor];
_genreTable.style = NSTableViewStylePlain;


col = [[NSTableColumn alloc] init];
col.title = @"Genre";
Expand Down

0 comments on commit 5a22856

Please sign in to comment.