Can anyone cast any light on the interaction between the bundle structure and the window server?
The following modified Cocoa app main function displays a dialog when run as an app. If the executable is extracted from the bundle and run it fails (no user interaction allowed). The thing is that NSApplicationMain() is not executed. So the window server connection must arise as a result of the executable's existence with a bundle. Or are my thoughts out of whack (again)? #import <Cocoa/Cocoa.h> int main(int argc, char *argv[]) { //return NSApplicationMain(argc, (const char **) argv); NSAppleScript *as = [[NSAppleScript alloc] initWithSource:@"display dialog \"hello\""]; NSDictionary *errorDict = nil; [as executeAndReturnError:&errorDict]; if (errorDict) { NSLog(@"%@", errorDict); return 1; } } Regards Jonathan Mitchell Developer http://www.mugginsoft.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com