• 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
getting the bundle name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting the bundle name


  • Subject: getting the bundle name
  • From: Donald Hall <email@hidden>
  • Date: Sun, 24 Mar 2002 00:43:19 -0700

I am trying to get the bundle name for my app using NSBundle methods, but am not having any luck. Can anyone help?

Here is a code fragment:

NSString *bundleName;
NSBundle *myBundle;

myBundle = [NSBundle mainBundle];
NSLog(@"main bundle is %@", myBundle);
bundleName= [myBundle bundleIdentifier];
NSLog(@"bundle name is %s", bundleName);

results of logging:

2002-03-24 00:35:58.129 RaiseMan[531] main bundle is NSBundle </Users/dhall/Documents/RaiseMan/build/RaiseMan.app> (loaded)
2002-03-24 00:35:58.129 RaiseMan[531] bundle name is (null)

As you can see, the bundle name is returned as null instead of "RaiseMan" as I think it should be.

(Yes, I am working through the Hillegass book!)

Don
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: getting the bundle name
      • From: Jonathan Feinberg <email@hidden>
    • Re: getting the bundle name
      • From: Ondra Cada <email@hidden>
    • Re: getting the bundle name
      • From: John Blackburn <email@hidden>
  • Prev by Date: Re: Reverse engineering Apple's private frameworks?
  • Next by Date: Service hotkeys on login
  • Previous by thread: RE: Precision
  • Next by thread: Re: getting the bundle name
  • Index(es):
    • Date
    • Thread