*** empty log message ***
authorKent Sutherland <ksuther@ithinksw.com>
Sun, 8 Aug 2004 14:24:03 +0000 (14:24 +0000)
committerKent Sutherland <ksuther@ithinksw.com>
Sun, 8 Aug 2004 14:24:03 +0000 (14:24 +0000)
MenuController.m
MenuTunes.xcode/project.pbxproj

index 2bd03d1..e65cc1d 100755 (executable)
 
 - (NSMenu *)artistsMenu
 {
-    NSMenu *artistsMenu = [[NSMenu alloc] initWithTitle:@""];
+    NSMenu *artistsMenu = [[NSMenu alloc] initWithTitle:@"Artists"];
     NSEnumerator *artistsEnumerator;
     NSString *nextArtist;
     id <NSMenuItem> tempItem;
         artistsEnumerator = [[[[MainController sharedController] currentRemote] artists] objectEnumerator];
         while ( (nextArtist = [artistsEnumerator nextObject]) ) {
             tempItem = [artistsMenu addItemWithTitle:nextArtist action:@selector(performBrowseMenuAction:) keyEquivalent:@""];
-            [tempItem setRepresentedObject:nextArtist];
-            [tempItem setTag:1];
             [tempItem setTarget:self];
         }
     NS_HANDLER
 
 - (NSMenu *)albumsMenu
 {
-    NSMenu *albumsMenu = [[NSMenu alloc] initWithTitle:@""];
+    NSMenu *albumsMenu = [[NSMenu alloc] initWithTitle:@"Albums"];
     NSEnumerator *albumsEnumerator;
     NSString *nextAlbum;
     id <NSMenuItem> tempItem;
         albumsEnumerator = [[[[MainController sharedController] currentRemote] albums] objectEnumerator];
         while ( (nextAlbum = [albumsEnumerator nextObject]) ) {
             tempItem = [albumsMenu addItemWithTitle:nextAlbum action:@selector(performBrowseMenuAction:) keyEquivalent:@""];
-            [tempItem setRepresentedObject:nextAlbum];
-            [tempItem setTag:2];
             [tempItem setTarget:self];
         }
     NS_HANDLER
 
 - (void)performBrowseMenuAction:(id)sender
 {
-    ITDebugLog(@"Browse action selected on item with object %@ and tag %i", [sender representedObject], [sender tag]);
+    ITDebugLog(@"Browse action selected on item named %@", [sender title]);
     /*
     ** 1 - Artist
     ** 2 - Album
     ** 3 - Genre?
     */
-    [[MainController sharedController] makePlaylistWithTerm:[sender representedObject] ofType:[sender tag]];
+    [[MainController sharedController] makePlaylistWithTerm:[sender title] ofType:(([[[sender menu] title] isEqualToString:@"Artists"]) ? 1 : 2)];
 }
 
 - (void)updateMenu
index 11fb646..9826106 100755 (executable)
@@ -86,8 +86,7 @@
                        sourceTree = "<group>";
                };
                1058C7A1FEA54F0111CA2CBB = {
-                       fallbackIsa = PBXFileReference;
-                       isa = PBXFrameworkReference;
+                       isa = PBXFileReference;
                        lastKnownFileType = wrapper.framework;
                        name = Cocoa.framework;
                        path = /System/Library/Frameworks/Cocoa.framework;
                29B97313FDCFA39411CA2CEA = {
                        buildSettings = {
                                MACOSX_DEPLOYMENT_TARGET = 10.2;
-                               SDKROOT = /Developer/SDKs/MacOSX10.2.7.sdk;
+                               SDKROOT = /Developer/SDKs/MacOSX10.2.8.sdk;
                        };
                        buildStyles = (
                                4A9504CCFFE6A4B311CA0CBA,
                        sourceTree = "<group>";
                };
                29B97324FDCFA39411CA2CEA = {
-                       fallbackIsa = PBXFileReference;
-                       isa = PBXFrameworkReference;
+                       isa = PBXFileReference;
                        lastKnownFileType = wrapper.framework;
                        name = AppKit.framework;
                        path = /System/Library/Frameworks/AppKit.framework;
                        sourceTree = "<absolute>";
                };
                29B97325FDCFA39411CA2CEA = {
-                       fallbackIsa = PBXFileReference;
-                       isa = PBXFrameworkReference;
+                       isa = PBXFileReference;
                        lastKnownFileType = wrapper.framework;
                        name = Foundation.framework;
                        path = /System/Library/Frameworks/Foundation.framework;
 //4A3
 //4A4
                4A9504CCFFE6A4B311CA0CBA = {
-                       buildRules = (
-                       );
                        buildSettings = {
                                COPY_PHASE_STRIP = NO;
                                DEBUGGING_SYMBOLS = YES;
                        name = Development;
                };
                4A9504CDFFE6A4B311CA0CBA = {
-                       buildRules = (
-                       );
                        buildSettings = {
                                COPY_PHASE_STRIP = YES;
+                               DEAD_CODE_STRIPPING = YES;
                                GCC_ENABLE_FIX_AND_CONTINUE = NO;
                                MACOSX_DEPLOYMENT_TARGET = 10.2;
                                ZERO_LINK = NO;
                };
                7C331F6905A918EC0088905B = {
                        isa = PBXFileReference;
-                       lastKnownFileType = text.plist.xml;
-                       name = "ITMTRemote-Info.plist";
-                       path = "/Volumes/Data/Desktop/MenuTunes/ITMTRemote-Info.plist";
-                       refType = 0;
-                       sourceTree = "<absolute>";
+                       lastKnownFileType = text.xml;
+                       path = "ITMTRemote-Info.plist";
+                       refType = 2;
+                       sourceTree = SOURCE_ROOT;
                };
                7C331F6A05A918FB0088905B = {
                        buildActionMask = 2147483647;
                };
                7C331F7005A918FB0088905B = {
                        isa = PBXFileReference;
-                       lastKnownFileType = text.plist.xml;
-                       name = "iTunesRemote-Info.plist";
-                       path = "/Volumes/Data/Desktop/MenuTunes/iTunesRemote-Info.plist";
-                       refType = 0;
-                       sourceTree = "<absolute>";
+                       lastKnownFileType = text.xml;
+                       path = "iTunesRemote-Info.plist";
+                       refType = 2;
+                       sourceTree = SOURCE_ROOT;
                };
                7C331F8D05A921AC0088905B = {
                        fileEncoding = 4;