CFBundleOpenBundleResourceFiles(_:_:_:)
Opens the non-localized and localized resource files (if any) for a bundle in separate resource maps.
Declaration
func CFBundleOpenBundleResourceFiles(_ bundle: CFBundle!, _ refNum: UnsafeMutablePointer<CFBundleRefNum>!, _ localizedRefNum: UnsafeMutablePointer<CFBundleRefNum>!) -> Int32Parameters
- bundle:
The bundle whose resource map you want to open.
- refNum:
On return, the reference number of the non-localized resource map.
- localizedRefNum:
On return, the reference number of the localized resource map.
Return Value
An error code. The function returns 0 (noErr) if successful. If the bundle contains more than one resource file, the function returns an error code only if none was opened. The most common error is resFNotFound, but the function may also pass through other errors returned from the Resource Manager.
See Also
Locating Bundle Resources
CFBundleCloseBundleResourceMap(_:_:)CFBundleCopyResourceURL(_:_:_:_:)CFBundleCopyResourceURLInDirectory(_:_:_:_:)CFBundleCopyResourceURLsOfType(_:_:_:)CFBundleCopyResourceURLsOfTypeInDirectory(_:_:_:)CFBundleCopyResourceURLForLocalization(_:_:_:_:_:)CFBundleCopyResourceURLsOfTypeForLocalization(_:_:_:_:)CFBundleOpenBundleResourceMap(_:)