Added an about box menu item. Bumped versions to MT 1.5.2.
authorKent Sutherland <ksuther@ithinksw.com>
Thu, 4 Aug 2005 17:53:09 +0000 (17:53 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Thu, 4 Aug 2005 17:53:09 +0000 (17:53 +0000)
English.lproj/InfoPlist.strings
English.lproj/Localizable.strings
Info.plist
MainController.h
MainController.m
MenuController.h
MenuController.m
PreferencesController.m

index 6036df3..a9cef8f 100755 (executable)
Binary files a/English.lproj/InfoPlist.strings and b/English.lproj/InfoPlist.strings differ
index 0b70ce5..665f569 100755 (executable)
@@ -9,6 +9,7 @@ rewind = "Rewind";
 showPlayer = "Show Player";
 show = "Show";
 preferences = "Preferences...";
+about = "About MenuTunes...";
 quit = "Quit MenuTunes";
 trackInfo = "Current Track Info";
 nowPlaying = "Now Playing";
index 236728a..4eec771 100755 (executable)
@@ -17,7 +17,7 @@
        <key>CFBundleSignature</key>
        <string>ITmt</string>
        <key>CFBundleVersion</key>
-       <string>1.5.1</string>
+       <string>1.5.2</string>
        <key>LSUIElement</key>
        <string>1</string>
        <key>NSMainNibFile</key>
index 027db07..36323bc 100755 (executable)
@@ -19,7 +19,7 @@
 #import <ITMTRemote/ITMTRemote.h>
 #import "MTBlingController.h"
 
-#define MT_CURRENT_VERSION 1510
+#define MT_CURRENT_VERSION 1520
 
 @class StatusWindowController, MenuController, NetworkController;
 
index d185d83..50b078d 100755 (executable)
@@ -1576,7 +1576,8 @@ static MainController *sharedController;
 
 - (void)applicationDidBecomeActive:(NSNotification *)note
 {
-       if (_open && !blinged && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) {
+       //This appears to not work in 10.4
+       if (_open && !blinged && ![[ITAboutBox sharedController] isVisible] && ![NSApp mainWindow] && ([[StatusWindow sharedWindow] exitMode] == ITTransientStatusWindowExitAfterDelay)) {
                [[MainController sharedController] showPreferences];
        }
 }
index 91a462a..5768a39 100755 (executable)
@@ -34,6 +34,7 @@ typedef enum {
     MTMenuNextTrackItem,
     MTMenuShowPlayerItem,
     MTMenuPreferencesItem,
+       MTMenuAboutItem,
     MTMenuQuitItem,
     MTMenuRegisterItem
 } MTMenuItemTag;
index a7147a4..5fdf747 100755 (executable)
@@ -15,6 +15,7 @@
 #import <ITKit/ITHotKey.h>
 #import <ITKit/ITKeyCombo.h>
 #import <ITKit/ITCategory-NSMenu.h>
+#import <ITKit/ITAboutBox.h>
 
 @interface MenuController (SubmenuMethods)
 - (NSMenu *)ratingMenu;
                     keyEquivalent:@""];
             [tempItem setTag:MTMenuPreferencesItem];
             [tempItem setTarget:self];
-        } else if ([nextObject isEqualToString:@"quit"]) {
+        } else if ([nextObject isEqualToString:@"about"]) {
+                       ITDebugLog(@"Add \"About MenuTunes...\" menu item.");
+            tempItem = [menu addItemWithTitle:NSLocalizedString(@"about", @"About MenuTunes...")
+                    action:@selector(performMainMenuAction:)
+                    keyEquivalent:@""];
+            [tempItem setTag:MTMenuAboutItem];
+            [tempItem setTarget:self];
+               } else if ([nextObject isEqualToString:@"quit"]) {
             if ([[MainController sharedController] blingBling] == NO) {
                 ITDebugLog(@"Add \"Register MenuTunes...\" menu item.");
                 tempItem = [menu addItemWithTitle:NSLocalizedString(@"register", @"Register MenuTunes...") action:@selector(performMainMenuAction:) keyEquivalent:@""];
             ITDebugLog(@"Performing Menu Action: Preferences...");
             [[MainController sharedController] showPreferences];
             break;
+               case MTMenuAboutItem:
+                       ITDebugLog(@"Performing Menu Action: About MenuTunes...");
+                       [[ITAboutBox sharedController] showAboutBox];
+                       break;
         case MTMenuQuitItem:
             ITDebugLog(@"Performing Menu Action: Quit");
             [[MainController sharedController] quitMenuTunes];
index 0c2a71c..247dca7 100755 (executable)
@@ -559,6 +559,7 @@ static PreferencesController *prefs = nil;
         @"upcomingSongs",
         @"separator",
         @"preferences",
+               @"about",
         @"quit",
         nil] forKey:@"menu"];
 
@@ -756,6 +757,7 @@ static PreferencesController *prefs = nil;
         @"fastForward",
         @"rewind",
         @"showPlayer",
+               @"about",
         @"quit",
         nil];