Corefoundation Assistance?
Corefoundation Assistance?
- Subject: Corefoundation Assistance?
- From: Dean Shavit <email@hidden>
- Date: Mon, 19 Feb 2007 23:17:54 -0600
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.
#include <CoreFoundation/CoreFoundation.h>
int main (int argc, char * requestedBundle, const char * argv[]) {
requestedBundle = CFBundleGetBundleWithIdentifier(
CFSTR("com.most.mhm") );
//CFShow(CFSTR("Yes"));
CFShow(requestedBundle);
// CFShow(CFSTR("Hello, World!\n"));
return 0;
}
Dean Shavit
email@hidden
http://www.macworkshops.com
General Partner
MOST (Mac OS Training)
Tel: 773-506-2100
Fax: 773-506-9323
Macworkshops Training Schedule: http://macworkshops.com/most/shed.html
Affordable Web Hosting & Email - Apple Certified System Administrator
Macintosh IT Training - Windows-Mac-Linux-Novell Internetworking
Custom on-site training solutions – NetSuite Solution Provider
_______________________________________________
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