Re: Corefoundation Assistance?
Re: Corefoundation Assistance?
- Subject: Re: Corefoundation Assistance?
- From: "Finlay Dobbie" <email@hidden>
- Date: Tue, 20 Feb 2007 09:35:10 +0000
On 20/02/07, Dean Shavit <email@hidden> wrote:
I'm trying to write a micro-small Corefoundation command line tool to
look up the name of a bundle using its identifier.
Here's what I have so far. I don't know how to get the command to
return the application to standard output. I'm new at this so I
apologize in advance. This returns null.
If you read the CoreFoundation documenation at
<http://developer.apple.com/documentation/CoreFoundation/Reference/CFBundleRef/Reference/reference.html#//apple_ref/c/func/CFBundleGetBundleWithIdentifier>,
you will see that it states:
"For a bundle to be located using its identifier, the bundle object
must have already been created."
You can't expect it to work for any random bundle in the system. If
it's an application, you might be able to use Launch Services;
otherwise you might be able to use Spotlight.
-- Finlay
_______________________________________________
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