AppleCFBundle - UBogun/Xojo-iosLib GitHub Wiki
Inherits from CFObject
Memory leak check: not yet done
Status: About a quarter done maybe.
CFBundle gives you access to files inside your app bundle as well as the possibility to load other bundles.
##Constructor
Constructor (Identifier As CFStringRef): Gets the bundle with the identifer name.
To get a list of available bundles, address the AllBundles property of the _MainBundle_shared property.
##Properties AllBundles As AppleCFArray (read-only): Returns an array of available bundles.
DevelopmentRegion As Text (read-only): Exactly that.
ExecutableIsLoaded As Boolean (read-only): True if the bundle's main executable has been loaded.
Identifier As Text (read-only): The name identifier of the bundle.
InfoDictionary As AppleDictionary (read-only): A Dictionary representation of the app's Info.plist file.
Apple advises to use this method only for exploration purposes and use ValueForInfoDictionaryKey instead because this method will return localized keys.
LocalInfoDictionary As AppleDictionary (read-only): Like above, but now containing the localized keys.
PackageCreator As CString (read-only): The name of the package creator.
PackageType As CString (read-only): The package type.
TypeID As UInteger (read-only): The CFBundle CoreFoundation TypeID.
VersionNumber As UInt32 (read-only): The version number of the bundle.
##Methods
DataPointerForName(Name AS CFStringRef) As Ptr: Returns the data pointer to a symbol name inside the bundle.
This method is useful for getting the real names for constants. Check AppleLibSystem.SystemconstantName for its use.
Load() As Boolean: Tries to load a bundle into memory and returns the success.
Unload(): Unloads thebundle's main executable. Apple discourages using this method!
ValueForInfoDictionaryKey (aKey As CFStringRef) As Text: Returns the localized value for a key from the bundles InfoDictionary.
##Shared Properties MainBundle As AppleCFBundle (read-only): Returns the app's main bundle.