meddlesome
meddlesome

Reputation: 551

How to get App Identifier within code in Cocoa Framework

I want to get an App Identifier within code in Cocoa Framework

Is have any method return App Identifier ?

Upvotes: 3

Views: 1013

Answers (1)

DK_
DK_

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

Related Questions