Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Enter if nothing is selected starts first song

  • Loading branch information...
commit 2f56fda875df6661b04286f62a8db5efa7446789 1 parent 2c52da1
Alexander Solovyov authored
17 appcast.xml
@@ -5,6 +5,22 @@
5 5 <link>https://github.com/piranha/tunatron/raw/master/appcast.xml</link>
6 6 <description>Most recent changes with links to updates.</description>
7 7 <language>en</language>
  8 +
  9 + <item>
  10 + <title>Version 2</title>
  11 + <description><![CDATA[
  12 + <ul>
  13 + <li>Enter if nothing is selected starts first song.</li>
  14 + </ul>
  15 + ]]></description>
  16 + <pubDate>Sat, 11 Aug 2012 16:35:00 +0200</pubDate>
  17 + <enclosure url="https://github.com/downloads/piranha/tunatron/tunatron-1.zip"
  18 + sparkle:version="1"
  19 + length="1437130"
  20 + type="application/octet-stream"
  21 + sparkle:dsaSignature="MCwCFELa6FAsQrgNhx3pYWAY1pYH83/aAhRczcO9qJfELqZuVWW7dwtY/cGi7g==" />
  22 + </item>
  23 +
8 24 <item>
9 25 <title>Version 1</title>
10 26 <description><![CDATA[
@@ -17,5 +33,6 @@
17 33 type="application/octet-stream"
18 34 sparkle:dsaSignature="MC0CFQCJJj4NB/bF0QFnw+e/7qB0bey0qwIULy7Ywa2+8fdNFKGfVP6m3etjD04=" />
19 35 </item>
  36 +
20 37 </channel>
21 38 </rss>
12 tunatron/SearchController.m
@@ -118,10 +118,16 @@ - (void)play:(Track *)track {
118 118 }
119 119
120 120 - (void)playSelectedTrack {
121   - ScoredTrack *current = self.found[self.table.selectedRow];
122   - if (current) {
123   - [self play:current.track];
  121 + if (self.found.count == 0) return;
  122 + ScoredTrack *current;
  123 +
  124 + if (self.table.selectedRow == NSNotFound) {
  125 + current = self.found[0];
  126 + } else {
  127 + current = self.found[self.table.selectedRow];
124 128 }
  129 +
  130 + [self play:current.track];
125 131 }
126 132
127 133 - (Track *)playingTrack {
55 tunatron/en.lproj/MainMenu.xib
@@ -1670,7 +1670,7 @@
1670 1670 <reference key="NSOnImage" ref="35465992"/>
1671 1671 <reference key="NSMixedImage" ref="502551668"/>
1672 1672 </object>
1673   - <object class="NSMenuItem" id="876087649">
  1673 + <object class="NSMenuItem" id="399449181">
1674 1674 <reference key="NSMenu" ref="1064173863"/>
1675 1675 <string key="NSTitle">Check for Updates...</string>
1676 1676 <string key="NSKeyEquiv"/>
@@ -1707,7 +1707,7 @@
1707 1707 <object class="NSCustomObject" id="755631768">
1708 1708 <string key="NSClassName">NSFontManager</string>
1709 1709 </object>
1710   - <object class="NSCustomObject" id="272906363">
  1710 + <object class="NSCustomObject" id="267005719">
1711 1711 <string key="NSClassName">SUUpdater</string>
1712 1712 </object>
1713 1713 </array>
@@ -2476,8 +2476,8 @@
2476 2476 <object class="IBConnectionRecord">
2477 2477 <object class="IBActionConnection" key="connection">
2478 2478 <string key="label">checkForUpdates:</string>
2479   - <reference key="source" ref="272906363"/>
2480   - <reference key="destination" ref="876087649"/>
  2479 + <reference key="source" ref="267005719"/>
  2480 + <reference key="destination" ref="399449181"/>
2481 2481 </object>
2482 2482 <int key="connectionID">669</int>
2483 2483 </object>
@@ -3740,7 +3740,7 @@
3740 3740 <reference ref="427784209"/>
3741 3741 <reference ref="694839188"/>
3742 3742 <reference ref="398438774"/>
3743   - <reference ref="876087649"/>
  3743 + <reference ref="399449181"/>
3744 3744 </array>
3745 3745 <reference key="parent" ref="0"/>
3746 3746 </object>
@@ -3766,12 +3766,12 @@
3766 3766 </object>
3767 3767 <object class="IBObjectRecord">
3768 3768 <int key="objectID">667</int>
3769   - <reference key="object" ref="272906363"/>
  3769 + <reference key="object" ref="267005719"/>
3770 3770 <reference key="parent" ref="0"/>
3771 3771 </object>
3772 3772 <object class="IBObjectRecord">
3773 3773 <int key="objectID">668</int>
3774   - <reference key="object" ref="876087649"/>
  3774 + <reference key="object" ref="399449181"/>
3775 3775 <reference key="parent" ref="1064173863"/>
3776 3776 </object>
3777 3777 </array>
@@ -4031,47 +4031,6 @@
4031 4031 </object>
4032 4032 </object>
4033 4033 <object class="IBPartialClassDescription">
4034   - <string key="className">NSDocument</string>
4035   - <dictionary class="NSMutableDictionary" key="actions">
4036   - <string key="printDocument:">id</string>
4037   - <string key="revertDocumentToSaved:">id</string>
4038   - <string key="runPageLayout:">id</string>
4039   - <string key="saveDocument:">id</string>
4040   - <string key="saveDocumentAs:">id</string>
4041   - <string key="saveDocumentTo:">id</string>
4042   - </dictionary>
4043   - <dictionary class="NSMutableDictionary" key="actionInfosByName">
4044   - <object class="IBActionInfo" key="printDocument:">
4045   - <string key="name">printDocument:</string>
4046   - <string key="candidateClassName">id</string>
4047   - </object>
4048   - <object class="IBActionInfo" key="revertDocumentToSaved:">
4049   - <string key="name">revertDocumentToSaved:</string>
4050   - <string key="candidateClassName">id</string>
4051   - </object>
4052   - <object class="IBActionInfo" key="runPageLayout:">
4053   - <string key="name">runPageLayout:</string>
4054   - <string key="candidateClassName">id</string>
4055   - </object>
4056   - <object class="IBActionInfo" key="saveDocument:">
4057   - <string key="name">saveDocument:</string>
4058   - <string key="candidateClassName">id</string>
4059   - </object>
4060   - <object class="IBActionInfo" key="saveDocumentAs:">
4061   - <string key="name">saveDocumentAs:</string>
4062   - <string key="candidateClassName">id</string>
4063   - </object>
4064   - <object class="IBActionInfo" key="saveDocumentTo:">
4065   - <string key="name">saveDocumentTo:</string>
4066   - <string key="candidateClassName">id</string>
4067   - </object>
4068   - </dictionary>
4069   - <object class="IBClassDescriptionSource" key="sourceIdentifier">
4070   - <string key="majorKey">IBProjectSource</string>
4071   - <string key="minorKey">./Classes/NSDocument.h</string>
4072   - </object>
4073   - </object>
4074   - <object class="IBPartialClassDescription">
4075 4034 <string key="className">NSLayoutConstraint</string>
4076 4035 <string key="superclassName">NSObject</string>
4077 4036 <object class="IBClassDescriptionSource" key="sourceIdentifier">
14 tunatron/tunatron-Info.plist
@@ -16,29 +16,27 @@
16 16 <string>${PRODUCT_NAME}</string>
17 17 <key>CFBundlePackageType</key>
18 18 <string>APPL</string>
19   - <key>CFBundleShortVersionString</key>
20   - <string>1</string>
21 19 <key>CFBundleSignature</key>
22 20 <string>????</string>
23 21 <key>CFBundleVersion</key>
24   - <string>1</string>
  22 + <string>2</string>
25 23 <key>LSApplicationCategoryType</key>
26 24 <string>public.app-category.entertainment</string>
27 25 <key>LSMinimumSystemVersion</key>
28 26 <string>${MACOSX_DEPLOYMENT_TARGET}</string>
  27 + <key>LSUIElement</key>
  28 + <true/>
29 29 <key>NSHumanReadableCopyright</key>
30 30 <string>Copyright © 2012 Witty Bullet. All rights reserved.</string>
31 31 <key>NSMainNibFile</key>
32 32 <string>MainMenu</string>
33 33 <key>NSPrincipalClass</key>
34 34 <string>NSApplication</string>
35   - <key>LSUIElement</key>
  35 + <key>SUEnableAutomaticChecks</key>
36 36 <true/>
37   - <key>SUPublicDSAKeyFile</key>
38   - <string>tunatron-public.pem</string>
39 37 <key>SUFeedURL</key>
40 38 <string>https://github.com/piranha/tunatron/raw/master/appcast.xml</string>
41   - <key>SUEnableAutomaticChecks</key>
42   - <true/>
  39 + <key>SUPublicDSAKeyFile</key>
  40 + <string>tunatron-public.pem</string>
43 41 </dict>
44 42 </plist>

0 comments on commit 2f56fda

Please sign in to comment.
Something went wrong with that request. Please try again.