QuickWho

Artifact Content
Login

Artifact 78b18c329fbba29dd8ad7f439ac3c45dc985e6c4:


#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
#import <stdlib.h>
#import <stdio.h>
#import <unistd.h>
#import <sys/wait.h>

int main (int argc, const char * argv[]) {

 
  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

  NSString *launchpath = [[NSBundle mainBundle] pathForResource:@"launcher" ofType:nil];

  char cmd[50000];

  [launchpath getCString:cmd maxLength:(sizeof cmd) encoding:NSUTF8StringEncoding];

  system(cmd);

  [pool release];

  
}