Browse Source

Fix for NSColorPanel only visible in debug build

Thomas Buck 9 years ago
parent
commit
d68d868d38
2 changed files with 4 additions and 3 deletions
  1. 3
    2
      CaseLights/AppDelegate.m
  2. 1
    1
      CaseLights/Info.plist

+ 3
- 2
CaseLights/AppDelegate.m View File

409
     [cp setContinuous:NO];
409
     [cp setContinuous:NO];
410
     [cp setMode:NSRGBModeColorPanel];
410
     [cp setMode:NSRGBModeColorPanel];
411
     
411
     
412
-    // TODO Try to restore last manually selected color
412
+    // Try to restore last manually selected color
413
     NSUserDefaults *store = [NSUserDefaults standardUserDefaults];
413
     NSUserDefaults *store = [NSUserDefaults standardUserDefaults];
414
     NSData *lastColorData = [store dataForKey:PREF_COLOR];
414
     NSData *lastColorData = [store dataForKey:PREF_COLOR];
415
     NSColor *lastColor = nil;
415
     NSColor *lastColor = nil;
418
         [cp setColor:lastColor];
418
         [cp setColor:lastColor];
419
     }
419
     }
420
     
420
     
421
-    [[NSApplication sharedApplication] orderFrontColorPanel:cp];
421
+    [NSApp activateIgnoringOtherApps:YES];
422
+    [application orderFrontColorPanel:cp];
422
 }
423
 }
423
 
424
 
424
 - (void)colorSelected:(id)sender {
425
 - (void)colorSelected:(id)sender {

+ 1
- 1
CaseLights/Info.plist View 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>170</string>
24
+	<string>172</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…
Cancel
Save