Contents

CFBundleOpenBundleResourceMap(_:)

Opens the non-localized and localized resource files (if any) for a bundle in a single resource map.

Declaration

func CFBundleOpenBundleResourceMap(_ bundle: CFBundle!) -> CFBundleRefNum

Parameters

  • bundle:

    The bundle whose resource map you want to open.

Return Value

A distinct reference number for the resource map.

Discussion

Creates and makes current a single read-only resource map containing the non-localized and localized resource files. If this function is called multiple times, it opens the files multiple times and returns distinct reference numbers for each. Use CFBundleCloseBundleResourceMap(_:_:) to close a resource map.

See Also

Locating Bundle Resources