Contents

CFBundleCopyInfoDictionaryForURL(_:)

Returns the information dictionary for a given URL location.

Declaration

func CFBundleCopyInfoDictionaryForURL(_ url: CFURL!) -> CFDictionary!

Parameters

  • url:

    A CFURL object describing the location of a file.

Return Value

A CFDictionary object containing url’s information dictionary. Ownership follows the The Create Rule.

Discussion

For a directory URL, this is equivalent to CFBundleCopyInfoDictionaryInDirectory(_:). For a plain file URL representing an unbundled application, this function will attempt to read an information dictionary either from the (__TEXT, __info_plist) section of the file (for a Mach-O file) or from a plst resource.

See Also

Getting Bundle Properties