I am new to Cocoa and Mac development, but not to development, being a C/C++ graphics programmer by trade. I am working my way through Hillegass' book, and although I am forgetting the details as fast as I am reading them, it all makes sense, and I suppose it will come together and stick in my head once I start using Cocoa in earnest.
I plan to develop an image processing application, with a Cocoa GIU, bit by bit. I will likely write the core in platform-independent C++, partly because I am used to this, and partly because it would make porting the application easier later, in case this should become desirable. The GUI will be done with Interface Builder and Cocoa, in Objective-C. However, image processing apps can benefit from batch modes, and although some things can be nicely handled by an in-app batch manager, the ideal would be to also allow the application to be run from the commandline, as a traditional unix utility. Given the .app bundle format of Cocoa apps, I don't quite see how I would do this. In main(), I have added an if contingent on the existence of commandline parameters (which can be refined in case Mac OS X uses these to launch drag-n-drop scenarios, something which I don't know yet), which doesn't load the GUI in case the app has been launched in commandline batch mode, but the executable is deep inside the .app bundle... What is the traditional Mac OS X/Cocoa way of handling such a scenario, or is it simply not do it like this, and to force the user to use an in-app batch manager? Thanks for any hints. Carsten _______________________________________________ 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 [EMAIL PROTECTED]