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: "Michael Ash" <email@hidden>
- Date: Sun, 17 Aug 2008 23:31:26 -0400
On Sun, Aug 17, 2008 at 7:41 AM, Roland King <email@hidden> wrote:
> I tried adding a Cocoa Bundle target, but that doesn't build an executable.
> I wondered about adding a second Cocoa Application target, then removing the
> nib and other stuff I didn't need and changing the main.m file to be my test
> command-line code, but then I'd have two Info.plist files in my project, one
> with the information for the Cocoa app and one with the information for the
> commandline bundle app thing, and that doesn't sound right either, infact it
> doesn't sound possible.
It should be perfectly possible. What sounds impossible about it? If
it's the two Info.plist files, they don't have to have the same name
in your project. You can give them names like Info-app.plist and
Info-tester.plist, then set those names in your target settings for
each target. You can configure each source file to be in either or
both targets as you wish, and off you go.
Mike
_______________________________________________
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