Show main.m syntax highlighted
//
// main.m
// SSHPassKey
//
// Created by Bill Bumgarner on Fri Jan 04 2002.
// Copyright (c) 2001 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
int main(int argc, const char *argv[])
{
NSString *mainNIB = nil;
if (argc == 2) {
const char *requestedPassword = argv[1];
if (strncmp(requestedPassword, "-psn_", strlen("-psn_")))
mainNIB = @"MainMenu";
}
if (mainNIB == nil) mainNIB = @"InfoWindow";
[NSApplication sharedApplication];
[NSBundle loadNibNamed: mainNIB owner:NSApp];
[NSApp run];
return 0;
}
See more files for this project here