Browse Source

Bugfix Pref Window Stepper. Can set unlimited title length. Bump to 1.3.1

Thomas Buck 11 years ago
parent
commit
252dac55af

+ 4
- 0
RedditBar.xcodeproj/project.pbxproj View File

497
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
497
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
498
 				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
498
 				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
499
 				CODE_SIGN_IDENTITY = "Mac Developer";
499
 				CODE_SIGN_IDENTITY = "Mac Developer";
500
+				"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
500
 				COMBINE_HIDPI_IMAGES = YES;
501
 				COMBINE_HIDPI_IMAGES = YES;
501
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
502
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
502
 				GCC_PREFIX_HEADER = "RedditBar/RedditBar-Prefix.pch";
503
 				GCC_PREFIX_HEADER = "RedditBar/RedditBar-Prefix.pch";
503
 				INFOPLIST_FILE = "RedditBar/RedditBar-Info.plist";
504
 				INFOPLIST_FILE = "RedditBar/RedditBar-Info.plist";
504
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
505
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
505
 				PRODUCT_NAME = "$(TARGET_NAME)";
506
 				PRODUCT_NAME = "$(TARGET_NAME)";
507
+				PROVISIONING_PROFILE = "";
506
 				WRAPPER_EXTENSION = app;
508
 				WRAPPER_EXTENSION = app;
507
 			};
509
 			};
508
 			name = Debug;
510
 			name = Debug;
513
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
515
 				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
514
 				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
516
 				CODE_SIGN_ENTITLEMENTS = RedditBar/RedditBar.entitlements;
515
 				CODE_SIGN_IDENTITY = "Mac Developer";
517
 				CODE_SIGN_IDENTITY = "Mac Developer";
518
+				"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Mac Developer";
516
 				COMBINE_HIDPI_IMAGES = YES;
519
 				COMBINE_HIDPI_IMAGES = YES;
517
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
520
 				GCC_PRECOMPILE_PREFIX_HEADER = YES;
518
 				GCC_PREFIX_HEADER = "RedditBar/RedditBar-Prefix.pch";
521
 				GCC_PREFIX_HEADER = "RedditBar/RedditBar-Prefix.pch";
519
 				INFOPLIST_FILE = "RedditBar/RedditBar-Info.plist";
522
 				INFOPLIST_FILE = "RedditBar/RedditBar-Info.plist";
520
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
523
 				MACOSX_DEPLOYMENT_TARGET = 10.8;
521
 				PRODUCT_NAME = "$(TARGET_NAME)";
524
 				PRODUCT_NAME = "$(TARGET_NAME)";
525
+				PROVISIONING_PROFILE = "";
522
 				WRAPPER_EXTENSION = app;
526
 				WRAPPER_EXTENSION = app;
523
 			};
527
 			};
524
 			name = Release;
528
 			name = Release;

+ 7
- 7
RedditBar/Base.lproj/Prefs.xib View File

185
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="jxz-fQ-M1L">
185
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="jxz-fQ-M1L">
186
                         <rect key="frame" x="130" y="157" width="19" height="27"/>
186
                         <rect key="frame" x="130" y="157" width="19" height="27"/>
187
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
187
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
188
-                        <stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" id="Gba-jV-Ouh"/>
188
+                        <stepperCell key="cell" continuous="YES" alignment="left" minValue="1" maxValue="100" doubleValue="1" id="Gba-jV-Ouh"/>
189
                         <connections>
189
                         <connections>
190
                             <action selector="lengthDidChange:" target="-2" id="CJm-58-seM"/>
190
                             <action selector="lengthDidChange:" target="-2" id="CJm-58-seM"/>
191
                             <outlet property="formatter" destination="zpc-oG-upp" id="nXg-hE-DQX"/>
191
                             <outlet property="formatter" destination="zpc-oG-upp" id="nXg-hE-DQX"/>
194
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="2aV-fo-xh7">
194
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="2aV-fo-xh7">
195
                         <rect key="frame" x="264" y="157" width="19" height="27"/>
195
                         <rect key="frame" x="264" y="157" width="19" height="27"/>
196
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
196
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
197
-                        <stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" id="BWQ-gm-H9h"/>
197
+                        <stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" doubleValue="1" id="BWQ-gm-H9h"/>
198
                         <connections>
198
                         <connections>
199
                             <action selector="titleDidChange:" target="-2" id="l0Y-Mg-1KD"/>
199
                             <action selector="titleDidChange:" target="-2" id="l0Y-Mg-1KD"/>
200
                             <outlet property="formatter" destination="hDb-Na-Vku" id="EL4-2q-XKw"/>
200
                             <outlet property="formatter" destination="hDb-Na-Vku" id="EL4-2q-XKw"/>
244
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="uaS-Xm-tIa">
244
                     <stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" id="uaS-Xm-tIa">
245
                         <rect key="frame" x="291" y="58" width="19" height="27"/>
245
                         <rect key="frame" x="291" y="58" width="19" height="27"/>
246
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
246
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
247
-                        <stepperCell key="cell" continuous="YES" alignment="left" maxValue="100" id="rTZ-Zs-1eO"/>
247
+                        <stepperCell key="cell" continuous="YES" alignment="left" minValue="1" maxValue="100" doubleValue="1" id="rTZ-Zs-1eO"/>
248
                         <connections>
248
                         <connections>
249
                             <action selector="refreshDidChange:" target="-2" id="4Di-oE-RDC"/>
249
                             <action selector="refreshDidChange:" target="-2" id="4Di-oE-RDC"/>
250
                             <outlet property="formatter" destination="Y11-Cs-X1g" id="hoL-jC-QPe"/>
250
                             <outlet property="formatter" destination="Y11-Cs-X1g" id="hoL-jC-QPe"/>
264
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
264
                         <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
265
                         <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="zJW-6u-fHd">
265
                         <popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="zJW-6u-fHd">
266
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
266
                             <behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
267
-                            <font key="font" metaFont="system"/>
267
+                            <font key="font" metaFont="menu"/>
268
                             <menu key="menu" title="OtherViews" id="Ow7-gc-PGv">
268
                             <menu key="menu" title="OtherViews" id="Ow7-gc-PGv">
269
                                 <items>
269
                                 <items>
270
-                                    <menuItem title="hot" state="on" id="sKV-FZ-wbQ">
270
+                                    <menuItem title="hot" id="sKV-FZ-wbQ">
271
                                         <modifierMask key="keyEquivalentModifierMask"/>
271
                                         <modifierMask key="keyEquivalentModifierMask"/>
272
                                     </menuItem>
272
                                     </menuItem>
273
                                     <menuItem title="new" id="dxr-Ml-O8i">
273
                                     <menuItem title="new" id="dxr-Ml-O8i">
295
             <attributedString key="attributedStringForZero">
295
             <attributedString key="attributedStringForZero">
296
                 <fragment content="0"/>
296
                 <fragment content="0"/>
297
             </attributedString>
297
             </attributedString>
298
-            <real key="minimum" value="1"/>
298
+            <real key="minimum" value="0.0"/>
299
             <real key="maximum" value="140"/>
299
             <real key="maximum" value="140"/>
300
             <metadata>
300
             <metadata>
301
                 <bool key="localizesFormat" value="YES"/>
301
                 <bool key="localizesFormat" value="YES"/>
306
             <attributedString key="attributedStringForZero">
306
             <attributedString key="attributedStringForZero">
307
                 <fragment content="0"/>
307
                 <fragment content="0"/>
308
             </attributedString>
308
             </attributedString>
309
-            <real key="minimum" value="0.0"/>
309
+            <real key="minimum" value="1"/>
310
             <decimal key="maximum" value="NaN"/>
310
             <decimal key="maximum" value="NaN"/>
311
             <metadata>
311
             <metadata>
312
                 <bool key="localizesFormat" value="YES"/>
312
                 <bool key="localizesFormat" value="YES"/>

+ 3
- 1
RedditBar/Reddit.m View File

172
         }
172
         }
173
         NSString *subreddit = [NSString stringWithFormat:subredditFormat, [current valueForKey:@"subreddit"]];
173
         NSString *subreddit = [NSString stringWithFormat:subredditFormat, [current valueForKey:@"subreddit"]];
174
         NSInteger maxLen = titleLength;
174
         NSInteger maxLen = titleLength;
175
-        if ([subreddit length] >= titleLength)
175
+        if (titleLength == 0)
176
+            maxLen = 1000; // Should be enough to not crop
177
+        if ([subreddit length] >= maxLen)
176
         showSubs = FALSE;
178
         showSubs = FALSE;
177
         if (showSubs)
179
         if (showSubs)
178
         maxLen -= [subreddit length];
180
         maxLen -= [subreddit length];

+ 2
- 2
RedditBar/RedditBar-Info.plist View File

17
 	<key>CFBundlePackageType</key>
17
 	<key>CFBundlePackageType</key>
18
 	<string>APPL</string>
18
 	<string>APPL</string>
19
 	<key>CFBundleShortVersionString</key>
19
 	<key>CFBundleShortVersionString</key>
20
-	<string>1.3.0</string>
20
+	<string>1.3.1</string>
21
 	<key>CFBundleSignature</key>
21
 	<key>CFBundleSignature</key>
22
 	<string>????</string>
22
 	<string>????</string>
23
 	<key>CFBundleVersion</key>
23
 	<key>CFBundleVersion</key>
24
-	<string>275</string>
24
+	<string>278</string>
25
 	<key>LSApplicationCategoryType</key>
25
 	<key>LSApplicationCategoryType</key>
26
 	<string>public.app-category.utilities</string>
26
 	<string>public.app-category.utilities</string>
27
 	<key>LSMinimumSystemVersion</key>
27
 	<key>LSMinimumSystemVersion</key>

+ 1
- 1
web/index.html View File

36
                     <a class="right carousel-control" href="#carousel" data-slide="next"></a>
36
                     <a class="right carousel-control" href="#carousel" data-slide="next"></a>
37
                 </div>
37
                 </div>
38
                 <p class="lead">Quickly open Reddit links and get notified about new PMs, right from your Mac system menu bar.</p>
38
                 <p class="lead">Quickly open Reddit links and get notified about new PMs, right from your Mac system menu bar.</p>
39
-                <p><a href="#"><img src="badge.svg" alt="App Store Badge"></a></p>
39
+                <p><a href="https://itunes.apple.com/us/app/redditbar/id787870887?ls=1&mt=12"><img src="badge.svg" alt="App Store Badge"></a></p>
40
                 <p class="small text-muted">Requires Mac OS X 10.8 or newer</p>
40
                 <p class="small text-muted">Requires Mac OS X 10.8 or newer</p>
41
             </div>
41
             </div>
42
             <div class="row marketing">
42
             <div class="row marketing">

Loading…
Cancel
Save