• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Corefoundation Assistance?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Corefoundation Assistance?
      • From: "Finlay Dobbie" <email@hidden>
  • Prev by Date: Re: Loading a private framework from a plug-in (Spotlight)
  • Next by Date: Re: Loading a private framework from a plug-in (Spotlight)
  • Previous by thread: re: Loading a private framework from a plug-in (Spotlight)
  • Next by thread: Re: Corefoundation Assistance?
  • Index(es):
    • Date
    • Thread