getting the bundle name
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.