Back to index

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

Go to the source code of this file.


void LaunchChild (int argc, char **argv)

Function Documentation

void LaunchChild ( int  argc,
char **  argv 

Definition at line 41 of file

  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: