tags:

views:

43

answers:

1

Hi,

i when i compile the project a .app application is created. and it is same name as the project name by default.

how to get that name programmaticaly ?

+2  A: 
NSDictionary *d = [NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"]];
NSString *s = [d objectForKey:@"CFBundleExecutable"];
NSLog(@"d: %@", s);
David Wong