• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: building a command-line tool as a bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: building a command-line tool as a bundle
      • From: Roland King <email@hidden>
References: 
 >building a command-line tool as a bundle (From: Roland King <email@hidden>)

  • Prev by Date: Problem redirecting NSLog() output to stderr
  • Next by Date: Re: NSUInteger hash
  • Previous by thread: Re: building a command-line tool as a bundle
  • Next by thread: Re: building a command-line tool as a bundle
  • Index(es):
    • Date
    • Thread