From 18e2a519b3b58d2f27fdbfbd59b6199be4d81894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Walsh?= Date: Fri, 15 Aug 2008 18:30:41 +0100 Subject: [PATCH] Force activation of the application after launch in debug builds. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is required when running with TextMate’s Build & Run command, as the application is opened in the background. --- ApplicationController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ApplicationController.m b/ApplicationController.m index 5b559df..0b7a8d4 100644 --- a/ApplicationController.m +++ b/ApplicationController.m @@ -15,6 +15,10 @@ - (ApplicationController*) init { +#ifndef NDEBUG + [NSApp activateIgnoringOtherApps:YES]; +#endif + if([[NSBundle bundleWithPath:@"/System/Library/PrivateFrameworks/QuickLookUI.framework"] load]) NSLog(@"Quick Look loaded!");