1
 2
 3
 4
 5
 6
 7
 8
 9
10
#import <Foundation/Foundation.h>

int main (int argc, const char * argv[]) {
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSLog( [[[NSBundle mainBundle] executablePath] lastPathComponent] );
    
    [pool drain];
    return 0;
}