Browse Source

Fix for NSColorPanel only visible in debug build

Thomas Buck 8 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,7 +409,7 @@
409 409
     [cp setContinuous:NO];
410 410
     [cp setMode:NSRGBModeColorPanel];
411 411
     
412
-    // TODO Try to restore last manually selected color
412
+    // Try to restore last manually selected color
413 413
     NSUserDefaults *store = [NSUserDefaults standardUserDefaults];
414 414
     NSData *lastColorData = [store dataForKey:PREF_COLOR];
415 415
     NSColor *lastColor = nil;
@@ -418,7 +418,8 @@
418 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 425
 - (void)colorSelected:(id)sender {

+ 1
- 1
CaseLights/Info.plist View File

@@ -21,7 +21,7 @@
21 21
 	<key>CFBundleSignature</key>
22 22
 	<string>????</string>
23 23
 	<key>CFBundleVersion</key>
24
-	<string>170</string>
24
+	<string>172</string>
25 25
 	<key>LSApplicationCategoryType</key>
26 26
 	<string>public.app-category.utilities</string>
27 27
 	<key>LSMinimumSystemVersion</key>

Loading…
Cancel
Save