Back to index

lightning-sunbird  0.9+nobinonly
Functions
launchchild_osx.mm File Reference
#include <Cocoa/Cocoa.h>

Go to the source code of this file.

Functions

void LaunchChild (int argc, char **argv)

Function Documentation

void LaunchChild ( int  argc,
char **  argv 
)

Definition at line 41 of file launchchild_osx.mm.

{
  int i;
  NSTask *child = [[NSTask alloc] init];
  NSMutableArray *args = [[NSMutableArray alloc] init];
  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];

  for (i = 1; i < argc; ++i)
    [args addObject: [NSString stringWithCString: argv[i]]];

  [child setLaunchPath: [NSString stringWithCString: argv[0]]];
  [child setArguments: args];
  [child launch];
  [pool release];
}

Here is the caller graph for this function: