Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow building+debugging on Lion.

  • Loading branch information...
commit 1e8b4fcd6419fcbe506391f0f6f1634241a226c1 1 parent 2218766
Jim Correia authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/ApplicationController.m
View
4 Source/ApplicationController.m
@@ -128,6 +128,7 @@ - (void)setShowsStatusItem:(BOOL)showsStatusItem updateUserDefaults:(BOOL)update
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
{
+#if !DEBUG // Allow building+debugging on Lion
SInt32 response = 0;
OSStatus status = Gestalt(gestaltSystemVersion, &response);
if (status == noErr && response >= 0x1070) {
@@ -141,7 +142,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)notification;
[alert runModal];
[[NSApplication sharedApplication] terminate:nil];
}
-
+#endif
+
BOOL shouldShowStatusItem = (self.wasLaunchedAtLogin ? [[NSUserDefaults standardUserDefaults] boolForKey:ShowStatusItemKey] : YES);
[self setShowsStatusItem:shouldShowStatusItem updateUserDefaults:NO];
}
Please sign in to comment.
Something went wrong with that request. Please try again.