From d0425a140ae8ca95be7b517276b0879710aa501f Mon Sep 17 00:00:00 2001 From: Patrick Stein Date: Fri, 11 Dec 2009 13:28:10 +0100 Subject: [PATCH] Updating an application now longer shows the installation application n the Dock (LSUIElement) , Removed TransformProcessType call as it will force the installer application to show in the Dock. --- finish_installation-Info.plist | 4 ++++ finish_installation.m | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/finish_installation-Info.plist b/finish_installation-Info.plist index 875efd5b..cd1be6fa 100644 --- a/finish_installation-Info.plist +++ b/finish_installation-Info.plist @@ -26,5 +26,9 @@ MainMenu NSPrincipalClass NSApplication + LSBackgroundOnly + 1 + LSUIElement + 1 diff --git a/finish_installation.m b/finish_installation.m index d00fb1a3..11b63169 100644 --- a/finish_installation.m +++ b/finish_installation.m @@ -138,8 +138,8 @@ int main (int argc, const char * argv[]) NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; - ProcessSerialNumber psn = { 0, kCurrentProcess }; - TransformProcessType( &psn, kProcessTransformToForegroundApplication ); + //ProcessSerialNumber psn = { 0, kCurrentProcess }; + //TransformProcessType( &psn, kProcessTransformToForegroundApplication ); [[NSApplication sharedApplication] activateIgnoringOtherApps: YES]; #if 0 // Cmdline tool