Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFBundleMBS class.

CFBundleMBS.kCFBundleDevelopmentRegionKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Returns nil on any error.

Some examples using this method:

CFBundleMBS.kCFBundleDisplayNameKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.3 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Display name of the bundle. Can be localized.
Returns nil on any error.

CFBundleMBS.kCFBundleExecutableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Returns nil on any error.

Some examples using this method:

CFBundleMBS.kCFBundleIdentifierKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.
Example
// Find the bundle id for Mail.app

dim f as FolderItem
dim b as CFBundleMBS
dim u as CFURLMBS
dim s as string
dim o as CFObjectMBS

f=ApplicationsFolderMBS(-32766).Child("Mail.app")
u=NewCFURLMBSFile(f)
b=CreateBundleMBS(u)
o=b.GetValueForInfoDictionaryKey(b.kCFBundleIdentifierKey)

if o isa CFStringMBS then
s=cfstringmbs(o).str
end if

msgbox s

Returns nil on any error.

Some examples using this method:

CFBundleMBS.kCFBundleInfoDictionaryVersionKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Returns nil on any error.

Some examples using this method:

CFBundleMBS.kCFBundleNameKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Returns nil on any error.

Some examples using this method:

CFBundleMBS.kCFBundleVersionKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for the dictionaries.

Returns nil on any error.

Some examples using this method:

CFBundleMBS.MainBundle as CFBundleMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 14.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a CFBundle for the main bundle (current app).
Example
MsgBox CFBundleMBS.MainBundle.Identifier

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...