Function

CFURLGetBaseURL

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

Declaration

CFURLRef CFURLGetBaseURL(CFURLRef anURL);

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

CFURLGetBytes

Returns by reference the byte representation of a URL object.

CFURLGetByteRangeForComponent

Returns the range of the specified component in the bytes of a URL.

CFURLGetTypeID

Returns the type identifier for the CFURL opaque type.

CFURLResourceIsReachable

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