~not/sonar

3d4848a80fdd716134aea6813764f1d52924690e — b123400 a month ago 4681c2a
Menu item and shortcut for search
2 files changed, 11 insertions(+), 2 deletions(-)

M Sonar/Base.lproj/MainMenu.xib
M Sonar/Player/PlayerWindowController.m
M Sonar/Base.lproj/MainMenu.xib => Sonar/Base.lproj/MainMenu.xib +7 -2
@@ 1,8 1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="21225" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="22505" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
    <dependencies>
        <deployment identifier="macosx"/>
        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="21225"/>
        <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="22505"/>
    </dependencies>
    <objects>
        <customObject id="-2" userLabel="File's Owner" customClass="SonarApplication">


@@ 325,6 325,11 @@
                                    <action selector="menubarAlbumsClicked:" target="-1" id="Uay-GB-mwu"/>
                                </connections>
                            </menuItem>
                            <menuItem title="Search" keyEquivalent="5" id="9vo-yp-jvp">
                                <connections>
                                    <action selector="menubarSearchClicked:" target="-1" id="Uay-GB-mxu"/>
                                </connections>
                            </menuItem>
                            <menuItem isSeparatorItem="YES" id="hB3-LF-h0Y"/>
                            <menuItem title="Enter Full Screen" keyEquivalent="f" id="4J7-dP-txa">
                                <modifierMask key="keyEquivalentModifierMask" control="YES" command="YES"/>

M Sonar/Player/PlayerWindowController.m => Sonar/Player/PlayerWindowController.m +4 -0
@@ 280,6 280,10 @@ typedef enum : NSUInteger {
    self.viewMode = PlayerWindowControllerViewModeAlbums;
}

- (IBAction)menubarSearchClicked:(id)sender {
    self.viewMode = PlayerWindowControllerViewModeSearch;
}

- (IBAction)menubarNewPlaylistClicked:(id)sender {
    NSAlert *alert = [[NSAlert alloc] init];
    [alert setInformativeText:NSLocalizedString(@"Enter playlist name",@"Create playlist dialog")];