streamline setting inspector tabs' tooltips

This commit is contained in:
Mitchell Livingston 2007-11-18 02:20:28 +00:00
parent f45e60a2ee
commit db98b81f9c
2 changed files with 2 additions and 11 deletions

View File

@ -28,6 +28,8 @@
- (void) awakeFromNib
{
[(NSMatrix *)[self controlView] setToolTip: [self title] forCell: self];
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
[nc addObserver: self selector: @selector(updateControlTint:)
name: NSControlTintDidChangeNotification object: nil];

View File

@ -100,17 +100,6 @@ typedef enum
[[fTabMatrix cellWithTag: TAB_FILES_TAG] setIcon: [NSImage imageNamed: @"InfoFiles.png"]];
[[fTabMatrix cellWithTag: TAB_OPTIONS_TAG] setIcon: [NSImage imageNamed: @"InfoOptions.png"]];
[fTabMatrix setToolTip: NSLocalizedString(@"General Info", "Inspector -> tab tooltip")
forCell: [fTabMatrix cellWithTag: TAB_INFO_TAG]];
[fTabMatrix setToolTip: NSLocalizedString(@"Activity", "Inspector -> tab tooltip")
forCell: [fTabMatrix cellWithTag: TAB_ACTIVITY_TAG]];
[fTabMatrix setToolTip: NSLocalizedString(@"Peers", "Inspector -> tab tooltip")
forCell: [fTabMatrix cellWithTag: TAB_PEERS_TAG]];
[fTabMatrix setToolTip: NSLocalizedString(@"Files", "Inspector -> tab tooltip")
forCell: [fTabMatrix cellWithTag: TAB_FILES_TAG]];
[fTabMatrix setToolTip: NSLocalizedString(@"Options", "Inspector -> tab tooltip")
forCell: [fTabMatrix cellWithTag: TAB_OPTIONS_TAG]];
//set selected tab
fCurrentTabTag = INVALID;
NSString * identifier = [[NSUserDefaults standardUserDefaults] stringForKey: @"InspectorSelected"];