Add native app support for OSX mach-o builds.
Fixes the 'Quit from dock not working' problem. Allows certain files to be dragged to the dock icon. Thanks to Mike Pinkerton <pinkerton@netscape.com> for the original patch. Bug #111797 r=ccarlen sr=sfraser git-svn-id: svn://10.0.0.236/trunk@134083 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -43,6 +43,9 @@
|
||||
#include "nsString.h"
|
||||
#include "plstr.h"
|
||||
#include "nsNetUtil.h"
|
||||
#ifdef XP_MACOSX
|
||||
#include "nsCommandLineServiceMac.h"
|
||||
#endif
|
||||
|
||||
nsCmdLineService::nsCmdLineService()
|
||||
: mArgCount(0), mArgc(0), mArgv(0)
|
||||
@@ -95,6 +98,11 @@ nsCmdLineService::Initialize(int aArgc, char ** aArgv)
|
||||
PRInt32 i=0;
|
||||
nsresult rv = nsnull;
|
||||
|
||||
#ifdef XP_MACOSX
|
||||
rv = InitializeMacCommandLine(aArgc, aArgv);
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv), "Initializing AppleEvents failed");
|
||||
#endif
|
||||
|
||||
// Save aArgc and argv
|
||||
mArgc = aArgc;
|
||||
mArgv = new char*[ aArgc ];
|
||||
|
||||
Reference in New Issue
Block a user