New: option to active or not xCodeCapp when opening the errors & warnings panel

Previously, when xCodeCapp opened the errors & warnings panel, xcc was always the new active application of the system.
Now an option is available in the preferences of xcc to disable this possibility. If disable the errors & warnings panel will open itself, but your favorite text editor will still be the active application of your system (you will keep the focus).
This commit is contained in:
Alexandre Wilhelm
2015-01-13 13:11:35 -08:00
parent a3a3da309c
commit 6213c098ce
5 changed files with 133 additions and 36 deletions
+10 -2
View File
@@ -1565,9 +1565,17 @@ void fsevents_callback(ConstFSEventStreamRef streamRef,
- (IBAction)openErrorsPanel:(id)aSender
{
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
[self.errorsPanel setFloatingPanel:[[NSUserDefaults standardUserDefaults] boolForKey:kDefaultXCCPanelStyleUtility]];
[self.errorsPanel makeKeyAndOrderFront:nil];
if ([[NSUserDefaults standardUserDefaults] boolForKey:kDefaultXCCPanelActiveAppWhenOpening])
{
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
[self.errorsPanel makeKeyAndOrderFront:nil];
}
else
{
[self.errorsPanel orderFrontRegardless];
}
}
- (IBAction)openErrorInEditor:(id)sender