Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get App Identifier within code in Cocoa Framework

Tags:

cocoa

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

Is have any method return App Identifier ?

like image 332
meddlesome Avatar asked Feb 06 '26 01:02

meddlesome


1 Answers

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.

like image 174
DK_ Avatar answered Feb 09 '26 09:02

DK_



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!