• 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: PB question (2 targets, depending on shared code and each other)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PB question (2 targets, depending on shared code and each other)


  • Subject: Re: PB question (2 targets, depending on shared code and each other)
  • From: Chris Giordano <email@hidden>
  • Date: Fri, 16 Aug 2002 11:15:34 -0400

Gerben,

I haven't seen an answer to this on the list yet, so I'll give it a shot.

If I am interpreting your question correctly, it sounds like all you need to do is make the cli tool a child-target off the GUI app (which you should be able to do without problem), and then include a copy files build phase in the GUI app target that copies the just-built cli tool to the Resources folder of your GUI app.

I've done exactly this with PrefPane bundles and an application -- I have a project with one app and 4 PrefPane bundles. They are all separate targets, but the bundles are children of the application target. I then have a copy files build phase that copies the bundles produced to the Resources (with a PreferencePanes subpath, actually, but that shouldn't make any difference) of the application. I believe I set it up by creating the copy files build phase, and just dragging the bundle products from the Products folder in PB to the Files text field. Since PB knows where it is putting the application, what it copies gets copied into the Resources directory of the application, wherever the application ends up.

If this isn't what you were looking for, please excuse my waste of bandwidth.

chris

On Thursday, August 15, 2002, at 03:37 PM, Gerben Wierda wrote:

I have a PB project with (currently) two targets. One is a GUI app, the other a cli tool that needs to be available in the Resources directory of the GUI app. Th ecli tool shares some code with the app, which is why it is part of the same project.

Now, the app is buit to .../Build/Foo.app and the command line tool is built into .../Build/bar. I have two questions:

1. Can I make the tool be a child-target of the app, such that when shared code changes, both are compiled?
2. Can I make the location of the tool depend on the location of the app?

Thanks,

G
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >PB question (2 targets, depending on shared code and each other) (From: Gerben Wierda <email@hidden>)

  • Prev by Date: Re: NSDocument:windowControllerDidLoadNib && When are outlets connected to te loaded nib?
  • Next by Date: Ordering windows when the application is hidden
  • Previous by thread: PB question (2 targets, depending on shared code and each other)
  • Next by thread: SIGBUS errors when dragging from the Finder to an NSTableView
  • Index(es):
    • Date
    • Thread