Skip to content

Commit

Permalink
Inspector title now includes noteName of any selected cell.
Browse files Browse the repository at this point in the history
  • Loading branch information
mmower committed Sep 3, 2009
1 parent 3211cdd commit 0188fba
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/inspector/ELInspectorController.m
Expand Up @@ -343,7 +343,11 @@ - (void)tabView:(NSTabView *)tabView willSelectTabViewItem:(NSTabViewItem *)tabV


- (void)updateTitle {
[self setTitle:[NSString stringWithFormat:@"%@ - %@", [[[self player] document] displayName], [[[self tabView] selectedTabViewItem] label]]];
if( [self cell] ) {
[self setTitle:[NSString stringWithFormat:@"%@ - %@ (%@)", [[[self player] document] displayName], [[[self tabView] selectedTabViewItem] label], [[self cell] noteName]]];
} else {
[self setTitle:[NSString stringWithFormat:@"%@ - %@", [[[self player] document] displayName], [[[self tabView] selectedTabViewItem] label]]];
}
}

@end

0 comments on commit 0188fba

Please sign in to comment.