Permalink
Browse files

Enter if nothing is selected starts first song

  • Loading branch information...
1 parent 2c52da1 commit 2f56fda875df6661b04286f62a8db5efa7446789 @piranha committed Aug 11, 2012
Showing with 39 additions and 59 deletions.
  1. +17 −0 appcast.xml
  2. +9 −3 tunatron/SearchController.m
  3. +7 −48 tunatron/en.lproj/MainMenu.xib
  4. +6 −8 tunatron/tunatron-Info.plist
View
17 appcast.xml
@@ -5,6 +5,22 @@
<link>https://github.com/piranha/tunatron/raw/master/appcast.xml</link>
<description>Most recent changes with links to updates.</description>
<language>en</language>
+
+ <item>
+ <title>Version 2</title>
+ <description><![CDATA[
+ <ul>
+ <li>Enter if nothing is selected starts first song.</li>
+ </ul>
+ ]]></description>
+ <pubDate>Sat, 11 Aug 2012 16:35:00 +0200</pubDate>
+ <enclosure url="https://github.com/downloads/piranha/tunatron/tunatron-1.zip"
+ sparkle:version="1"
+ length="1437130"
+ type="application/octet-stream"
+ sparkle:dsaSignature="MCwCFELa6FAsQrgNhx3pYWAY1pYH83/aAhRczcO9qJfELqZuVWW7dwtY/cGi7g==" />
+ </item>
+
<item>
<title>Version 1</title>
<description><![CDATA[
@@ -17,5 +33,6 @@
type="application/octet-stream"
sparkle:dsaSignature="MC0CFQCJJj4NB/bF0QFnw+e/7qB0bey0qwIULy7Ywa2+8fdNFKGfVP6m3etjD04=" />
</item>
+
</channel>
</rss>
View
12 tunatron/SearchController.m
@@ -118,10 +118,16 @@ - (void)play:(Track *)track {
}
- (void)playSelectedTrack {
- ScoredTrack *current = self.found[self.table.selectedRow];
- if (current) {
- [self play:current.track];
+ if (self.found.count == 0) return;
+ ScoredTrack *current;
+
+ if (self.table.selectedRow == NSNotFound) {
+ current = self.found[0];
+ } else {
+ current = self.found[self.table.selectedRow];
}
+
+ [self play:current.track];
}
- (Track *)playingTrack {
View
55 tunatron/en.lproj/MainMenu.xib
@@ -1670,7 +1670,7 @@
<reference key="NSOnImage" ref="35465992"/>
<reference key="NSMixedImage" ref="502551668"/>
</object>
- <object class="NSMenuItem" id="876087649">
+ <object class="NSMenuItem" id="399449181">
<reference key="NSMenu" ref="1064173863"/>
<string key="NSTitle">Check for Updates...</string>
<string key="NSKeyEquiv"/>
@@ -1707,7 +1707,7 @@
<object class="NSCustomObject" id="755631768">
<string key="NSClassName">NSFontManager</string>
</object>
- <object class="NSCustomObject" id="272906363">
+ <object class="NSCustomObject" id="267005719">
<string key="NSClassName">SUUpdater</string>
</object>
</array>
@@ -2476,8 +2476,8 @@
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">checkForUpdates:</string>
- <reference key="source" ref="272906363"/>
- <reference key="destination" ref="876087649"/>
+ <reference key="source" ref="267005719"/>
+ <reference key="destination" ref="399449181"/>
</object>
<int key="connectionID">669</int>
</object>
@@ -3740,7 +3740,7 @@
<reference ref="427784209"/>
<reference ref="694839188"/>
<reference ref="398438774"/>
- <reference ref="876087649"/>
+ <reference ref="399449181"/>
</array>
<reference key="parent" ref="0"/>
</object>
@@ -3766,12 +3766,12 @@
</object>
<object class="IBObjectRecord">
<int key="objectID">667</int>
- <reference key="object" ref="272906363"/>
+ <reference key="object" ref="267005719"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">668</int>
- <reference key="object" ref="876087649"/>
+ <reference key="object" ref="399449181"/>
<reference key="parent" ref="1064173863"/>
</object>
</array>
@@ -4031,47 +4031,6 @@
</object>
</object>
<object class="IBPartialClassDescription">
- <string key="className">NSDocument</string>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="printDocument:">id</string>
- <string key="revertDocumentToSaved:">id</string>
- <string key="runPageLayout:">id</string>
- <string key="saveDocument:">id</string>
- <string key="saveDocumentAs:">id</string>
- <string key="saveDocumentTo:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="printDocument:">
- <string key="name">printDocument:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="revertDocumentToSaved:">
- <string key="name">revertDocumentToSaved:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="runPageLayout:">
- <string key="name">runPageLayout:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="saveDocument:">
- <string key="name">saveDocument:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="saveDocumentAs:">
- <string key="name">saveDocumentAs:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="saveDocumentTo:">
- <string key="name">saveDocumentTo:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/NSDocument.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
<string key="className">NSLayoutConstraint</string>
<string key="superclassName">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
View
14 tunatron/tunatron-Info.plist
@@ -16,29 +16,27 @@
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>2</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.entertainment</string>
<key>LSMinimumSystemVersion</key>
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
+ <key>LSUIElement</key>
+ <true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2012 Witty Bullet. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
- <key>LSUIElement</key>
+ <key>SUEnableAutomaticChecks</key>
<true/>
- <key>SUPublicDSAKeyFile</key>
- <string>tunatron-public.pem</string>
<key>SUFeedURL</key>
<string>https://github.com/piranha/tunatron/raw/master/appcast.xml</string>
- <key>SUEnableAutomaticChecks</key>
- <true/>
+ <key>SUPublicDSAKeyFile</key>
+ <string>tunatron-public.pem</string>
</dict>
</plist>

0 comments on commit 2f56fda

Please sign in to comment.