Function

CFURLGetBaseURL(_:)

Returns the base URL of a given URL if it exists.

Declaration

func CFURLGetBaseURL(_ anURL: CFURL!) -> CFURL!

Parameters

anURL

The CFURL object to examine.

Return Value

A CFURL object representing the base URL of anURL. Ownership follows the get rule. See The Get Rule.

See Also

Getting URL Properties

func CFURLGetBytes(CFURL!, UnsafeMutablePointer<UInt8>!, CFIndex) -> CFIndex

Returns by reference the byte representation of a URL object.

func CFURLGetTypeID() -> CFTypeID

Returns the type identifier for the CFURL opaque type.

func CFURLResourceIsReachable(CFURL!, UnsafeMutablePointer<Unmanaged<CFError>?>!) -> Bool

Returns whether the resource pointed to by a file URL can be reached.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software