Merge pull request #469 from kainjow/master

Add ability for host bundle to specify a custom name
This commit is contained in:
Kornel committed 2015-02-08 11:07:55 +00:00
commit 5e4e904efd
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];