Reputation: 551
I want to get an App Identifier within code in Cocoa Framework
Is have any method return App Identifier ?
Upvotes: 3
Views: 1013
Reputation: 2658
I think the best approach is to simply do:
NSString *identifier = [[NSBundle mainBundle] bundleIdentifier];
It might internally fetch the key from the dictionary, but looks much cleaner.
Upvotes: 11