From db65925ff06b1bbcf2606d6684301124ae66f053 Mon Sep 17 00:00:00 2001 From: vspader Date: Thu, 13 Mar 2008 01:21:54 +0000 Subject: [PATCH] Fixed now playing in dock menu. --- Application/PlaybackController.m | 19 -- English.lproj/MainMenu.xib | 347 +++++++++++++++++++++++++++---- 2 files changed, 308 insertions(+), 58 deletions(-) diff --git a/Application/PlaybackController.m b/Application/PlaybackController.m index 6b7ea4d62..b3ee03af2 100644 --- a/Application/PlaybackController.m +++ b/Application/PlaybackController.m @@ -576,25 +576,6 @@ playbackStatus = status; } --(BOOL)validateMenuItem:(NSMenuItem*)menuItem -{ - SEL action = [menuItem action]; - - if (action == @selector(eventSeekBackward:) && (playbackStatus == kCogStatusStopped)) - return NO; - - if (action == @selector(eventSeekForward:) && (playbackStatus == kCogStatusStopped)) - return NO; - - if (action == @selector(stop:) && (playbackStatus == kCogStatusStopped)) - return NO; - - if (action == @selector(fade:) && (playbackStatus == kCogStatusStopped)) - return NO; - - return YES; -} - @end diff --git a/English.lproj/MainMenu.xib b/English.lproj/MainMenu.xib index fd0b31f57..0afcc207c 100644 --- a/English.lproj/MainMenu.xib +++ b/English.lproj/MainMenu.xib @@ -8,12 +8,12 @@ 352.00 YES - - - - + + + + YES @@ -2946,6 +2946,7 @@ MDA4AA YES + YES Current Artist 2147483647 @@ -2954,6 +2955,7 @@ MDA4AA + YES Current Song 2147483647 @@ -3019,6 +3021,7 @@ MDA4AA + YES PlaybackController @@ -3257,6 +3260,12 @@ MDA4AA seekable queued + + title + + + artist + PlaylistEntry YES @@ -3836,22 +3845,6 @@ MDA4AA 1304 - - - title: currentEntry.title - - - - - - title: currentEntry.title - title - currentEntry.title - 2 - - - 1305 - playlistController @@ -4154,22 +4147,6 @@ MDA4AA 1449 - - - title: currentEntry.artist - - - - - - title: currentEntry.artist - title - currentEntry.artist - 2 - - - 1456 - predicate: filterPredicate @@ -5491,7 +5468,7 @@ MDA4AA - + NSIsNotNil @@ -5570,6 +5547,296 @@ MDA4AA 2070 + + + hidden: content + + + + + + hidden: content + hidden + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + NSValueTransformerName + + + YES + + + + + + NSIsNil + + + 2 + + + 2079 + + + + title: content.title + + + + + + title: content.title + title + content.title + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + + + YES + + + + Not Playing + + + + 2 + + + 2083 + + + + title: content.artist + + + + + + title: content.artist + title + content.artist + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + + + YES + + + + Not Playing + + + + 2 + + + 2085 + + + + enabled: content + + + + + + enabled: content + enabled + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + NSValueTransformerName + + + YES + + + + + + NSIsNotNil + + + 2 + + + 2096 + + + + enabled: content + + + + + + enabled: content + enabled + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + NSValueTransformerName + + + YES + + + + + + NSIsNotNil + + + 2 + + + 2099 + + + + enabled: content + + + + + + enabled: content + enabled + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + NSValueTransformerName + + + YES + + + + + + NSIsNotNil + + + 2 + + + 2104 + + + + enabled: content + + + + + + enabled: content + enabled + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSValueTransformerName + + + YES + + + + + NSIsNotNil + + + 2 + + + 2105 + + + + enabled: content + + + + + + enabled: content + enabled + content + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + NSValueTransformerName + + + YES + + + + + + NSIsNotNil + + + 2 + + + 2107 + @@ -7867,6 +8134,7 @@ MDA4AA 391.ImportedFromIB2 418.IBPluginDependency 418.ImportedFromIB2 + 419.IBEditorWindowLastContentRect 419.IBPluginDependency 419.ImportedFromIB2 419.editorWindowContentRectSynchronizationRect @@ -8401,6 +8669,7 @@ MDA4AA com.apple.InterfaceBuilder.CocoaPlugin + {{195, 671}, {222, 293}} com.apple.InterfaceBuilder.CocoaPlugin {{307, 543}, {222, 293}} @@ -8435,7 +8704,7 @@ MDA4AA com.apple.InterfaceBuilder.CocoaPlugin - {{21, 818}, {164, 143}} + {{193, 397}, {164, 143}} com.apple.InterfaceBuilder.CocoaPlugin {{58, 502}, {164, 143}} @@ -8534,7 +8803,7 @@ MDA4AA - 2070 + 2117