You’d use:
[[NSBundle mainBundle] bundleIdentifier]
+ mainBundle “[r]eturns the NSBundle object that corresponds to the directory where the current application executable is located.” and hence will return an NSBundle object for the application bundle.
[- bundleIdentifier] Returns “[t]he receiver’s bundle identifier, which is defined by the CFBundleIdentifier key in the bundle’s information property list.”