Fall back to CFBundleName if CFBundleDisplayName is not available

This commit is contained in:
Pierre-Olivier Latour
2014-09-15 08:03:57 -07:00
parent d47409c776
commit cf94e70a42

View File

@@ -322,6 +322,9 @@
NSString* title = server.title;
if (title == nil) {
title = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"];
if (title == nil) {
title = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"];
}
#if !TARGET_OS_IPHONE
if (title == nil) {
title = [[NSProcessInfo processInfo] processName];