Sfoglia il codice sorgente

Fixed a bug that prevented Retina Images from loading, showing the normal version instead.

Thomas Buck 10 anni fa
parent
commit
efdcd91580

+ 1
- 1
BaconBarHelper/BaconBarHelper-Info.plist Vedi File

21
 	<key>CFBundleSignature</key>
21
 	<key>CFBundleSignature</key>
22
 	<string>????</string>
22
 	<string>????</string>
23
 	<key>CFBundleVersion</key>
23
 	<key>CFBundleVersion</key>
24
-	<string>66</string>
24
+	<string>67</string>
25
 	<key>LSBackgroundOnly</key>
25
 	<key>LSBackgroundOnly</key>
26
 	<true/>
26
 	<true/>
27
 	<key>LSMinimumSystemVersion</key>
27
 	<key>LSMinimumSystemVersion</key>

+ 4
- 5
RedditBar/AppDelegate.m Vedi File

43
 
43
 
44
 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
44
 - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
45
     statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
45
     statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSSquareStatusItemLength];
46
-    NSBundle *bundle = [NSBundle mainBundle];
47
-    statusImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon" ofType:@"png"]];
48
-    statusHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"icon-alt" ofType:@"png"]];
49
-    orangeredImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered" ofType:@"png"]];
50
-    orangeredHighlightImage = [[NSImage alloc] initWithContentsOfFile:[bundle pathForResource:@"orangered-alt" ofType:@"png"]];
46
+    statusImage = [NSImage imageNamed:@"icon"];
47
+    statusHighlightImage = [NSImage imageNamed:@"icon-alt"];
48
+    orangeredImage = [NSImage imageNamed:@"orangered"];
49
+    orangeredHighlightImage = [NSImage imageNamed:@"orangered-alt"];
51
     [statusItem setImage:statusImage];
50
     [statusItem setImage:statusImage];
52
     [statusItem setAlternateImage:statusHighlightImage];
51
     [statusItem setAlternateImage:statusHighlightImage];
53
     [statusItem setMenu:statusMenu];
52
     [statusItem setMenu:statusMenu];

+ 2
- 2
RedditBar/BaconBar-Info.plist Vedi 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.5.1</string>
20
+	<string>1.5.2</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>414</string>
24
+	<string>415</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>

Loading…
Annulla
Salva