Skip to content
This repository has been archived by the owner on Mar 30, 2021. It is now read-only.

Commit

Permalink
Use main control menu for dock menu instead of custom list
Browse files Browse the repository at this point in the history
  • Loading branch information
anantn committed Mar 3, 2014
1 parent e76af9f commit edc0b48
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 deletions.
1 change: 0 additions & 1 deletion google-music-mac/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
@property (nonatomic, retain) PopupStatusView *statusView;
@property (nonatomic, retain) IBOutlet PopupPanel *popup;
@property (assign) IBOutlet PopupViewDelegate *popupDelegate;
@property (assign) IBOutlet NSMenu *dockMenu;

@property (assign) IBOutlet PreferencesWindowController *prefsController;
@property (assign) NSUserDefaults *defaults;
Expand Down
6 changes: 0 additions & 6 deletions google-music-mac/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ @implementation AppDelegate
@synthesize popupDelegate;
@synthesize defaults;
@synthesize prefsController;
@synthesize dockMenu;

@synthesize currentTitle;
@synthesize currentArtist;
Expand Down Expand Up @@ -115,11 +114,6 @@ - (void)initializeStatusBar
[statusItem setView:statusView];
}

- (NSMenu *)applicationDockMenu:(NSApplication *)sender
{
return dockMenu;
}

#pragma mark - Event tap methods

/**
Expand Down
24 changes: 1 addition & 23 deletions google-music-mac/en.lproj/MainMenu.xib
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
<customObject id="-2" userLabel="File's Owner" customClass="NSApplication">
<connections>
<outlet property="delegate" destination="494" id="495"/>
<outlet property="dockMenu" destination="376" id="ovO-tl-RD1"/>
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
<customObject id="-3" userLabel="Application"/>
<customObject id="494" customClass="AppDelegate">
<connections>
<outlet property="dockMenu" destination="2vi-UN-Prz" id="CPi-Gq-UVI"/>
<outlet property="popup" destination="sr1-Je-yff" id="X7b-8t-XL5"/>
<outlet property="popupDelegate" destination="vhZ-72-AYY" id="CHe-5t-K17"/>
<outlet property="prefsController" destination="Lzb-Be-DHP" id="G8R-fX-IHV"/>
Expand Down Expand Up @@ -464,28 +464,6 @@
<outlet property="popupView" destination="4yq-G3-W3B" id="VcF-fy-kbk"/>
</connections>
</window>
<menu title="Dock Menu" id="2vi-UN-Prz">
<items>
<menuItem title="Play/Pause" id="qOT-H3-KUA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="playPause:" target="494" id="AdR-8g-WIL"/>
</connections>
</menuItem>
<menuItem title="Next Song" id="sZw-jw-aXJ">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="forwardAction:" target="494" id="VrL-dr-Czf"/>
</connections>
</menuItem>
<menuItem title="Previous Song" id="Sk7-Mn-GGA">
<modifierMask key="keyEquivalentModifierMask"/>
<connections>
<action selector="backAction:" target="494" id="h4T-Ih-JO1"/>
</connections>
</menuItem>
</items>
</menu>
</objects>
<resources>
<image name="next" width="512" height="512"/>
Expand Down

0 comments on commit edc0b48

Please sign in to comment.