Re: Foundation Tool & NSApplicationMain?
Re: Foundation Tool & NSApplicationMain?
- Subject: Re: Foundation Tool & NSApplicationMain?
- From: Uli Kusterer <email@hidden>
- Date: Tue, 22 Nov 2005 14:49:37 +0100
Am 22.11.2005 um 01:04 schrieb George Lawrence Storm:
On the other hand leaving it as a Cocoa application it is not being
recognized by the "Terminal" application despite being moved to /
bin. (works fine in the IDE)
You need to execute the actual executable (e.g. /Applications/
MyApp.app/MacOS/MyApp) not the bundle folder. Then it'll work. You
could try creating a symlink to that file in /bin to make it run.
NSApplicationMain requires a bundle. If you want to do a Foundation
Tool, that implies you won't use any AppKit stuff. To do that, just
write your own ANSI C main() function that creates your application
controller object (what would have been your app delegate in AppKit)
and runs some methods on it.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden