Add ability for host bundle to specify a custom name

This commit is contained in:
Kevin Wojniak committed 2014-12-23 08:47:11 -08:00
1 parent fbd20b7084
commit 979ab661de
1 file changed
+7 -1
+7 -1
View File
@@ -102,7 +102,13 @@ typedef struct {
- (NSString *)name
{
NSString *name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"];
NSString *name;
// Allow host bundle to provide a custom name
name = [self objectForInfoDictionaryKey:@"SUBundleName"];
if (name) return name;
name = [self.bundle objectForInfoDictionaryKey:@"CFBundleDisplayName"];
if (name) return name;
name = [self objectForInfoDictionaryKey:(__bridge NSString *)kCFBundleNameKey];