Re: building a command-line tool as a bundle
Re: building a command-line tool as a bundle
- Subject: Re: building a command-line tool as a bundle
- From: Roland King <email@hidden>
- Date: Mon, 18 Aug 2008 12:27:27 +0800
Marcel Weiher wrote:
On Aug 17, 2008, at 4:41 , Roland King wrote:
I started building a Cocoa app then decided that I wanted to build
myself a little command-line tool to test the classes I'm writing.
Perhaps it should be a Unit test but I thought perhaps I'd learn
those another day. So I added a command-line target, marked the .m
and .h files I wanted to test as belonging to that target, wrote a
main() and all is well.
Cool.
Now I want my final cocoa app to use a plist file in the app bundle
for some startup data, so I'd like my little command-line tool to be
a bundled app too (instead of the straight executable which is
currently built) so I can put the plist file in there and do some
tests. So I was trying to convert the commandline tool target to
build a bundle and haven't managed it.
Have you considered just passing the path to the startup data to your
command line utility?
Marcel
I hadn't - that probably would have worked, however I was testing my
bundle and preference stuff so I really did want a bundle.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden