Re: Single project or two separate projects?
Re: Single project or two separate projects?
- Subject: Re: Single project or two separate projects?
- From: Heath Raftery <email@hidden>
- Date: Tue, 2 May 2006 00:33:55 +1000
On 28/02/2006, at 7:15 PM, 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.
Is there anyway to debug both at the same time?
Ah, that's a little tricky - some other Pref Pane developer said they
wrote a very small additional app that just hosted their pref pane,
then debugged the host and the pref pane together. That's because
debugging System Preferences is a bit hard without the source.
Is there some sort of sample code to do this? I am not sure how
this would
work since there would still be two apps and the debugger can't
launch my
PrefPane as a normal app - so how do I debug it? I can see that it
would
launch the hosting app, but then debugging my PrefPane - not sure...
No, only the host app is being debugged. Your pref pane is loaded as
a bundle by the host app. It essentially runs as if it were the host
app. Look for sample code dealing with the loading of a pref pane.
I'm sure some exists somewhere, but not sure where. Essentially you'd
be writing a bare bones version of System Preferences, and your pref
pane would be "installed" in your host app.
Debugging the faceless app is another problem in itself. I'd suggest
debugging it separately - one code base for one executable. Any
reason you need the running at the same time? If they both have to be
running, I'd suggest building one as deployment and one as
development and debug one at a time (that's what I do with a
different, client/server project). Just simplifies things a great
deal.
While I can do one at a time, since they communicate with each
other, it'd
be nice to be able to see data in one and then see that all goes
well in the
communications process.
There's always the option of doing lots of syslog dumps in the non-
debug app! This got me through, but is certainly not ideal for
extensive debugging.
Heath
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden