Re: Finding and Launching CFM app in bundle
Re: Finding and Launching CFM app in bundle
- Subject: Re: Finding and Launching CFM app in bundle
- From: Finlay Dobbie <email@hidden>
- Date: Wed, 22 Aug 2001 22:09:40 +0100
On Wednesday, August 22, 2001, at 09:32 pm, Sanford Selznick wrote:
How do I (1) find and (2) launch the carbon app that is located inside
my bundle from obj-c?
See NSBundle's pathForResource instance method.
I figured I could just do a system("open myapp"), but it doesn't work.
I've looked through Launch Services, but it's more for documents, so
far as I can tell. I've also looked through System.framework, but
can't find what I need documented. I'm probably looking in the wrong
place.
You could execute LaunchCFMApp directly.
/System/Library/Frameworks/Carbon.framework/Versions/A/Support/LaunchCFMApp
/path/to/cfm/file
Hope that helps,
-- Finlay