Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Single project or two separate projects?



On 30/04/2006, at 12:35 AM, Trygve Inda wrote:

Trygve,

On 27/02/2006, at 12:47 AM, Trygve Inda wrote: I have a Cocoa- based System
Pref Pane and it will need to communicate with a Carbon-based background app
(no GUI) to do some work. The Carbon app is meant to be embedded in the
Cocoa's bundle so the user sees only a single app/file.


I have a Cocoa Sys Pref that communicates with a C daemon.

Can I put these into a single Xcode project?

Yep. That's the way I do it. The build process can put the faceless app in the Pref Pane's bundle for you, as well as building it first if it has been touched.

Can someone please explain how to do this? I gather that I need to setup a
second target... One being a pref pane and one a Carbon-based faceless app.
How do I force the carbon app to build first and get places in the cocoa
bundle?

Yep. Open the options for the pref pane target, and drag the faceless app target into the dependencies list for the pref pane target. That takes care of building requirements. To get it in the right place, add a "copy files" step to your pref pane target. You can specify the location inside the bundle by simply using the destination pull down menu that appears in the "copy files" window.


Heath
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.