Advances an enumerator to the next URL.
SDKs
- iOS 4.0+
- macOS 10.6+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
func CFURLEnumeratorGetNextURL(_ enumerator: CFURLEnumerator!, _ url: Unsafe Mutable Pointer<Unmanaged<CFURL>?>!, _ error: Unsafe Mutable Pointer<Unmanaged<CFError>?>!) -> CFURLEnumerator Result
Parameters
enumerator
The enumerator.
url
Contains the next URL if this function returns
CFURLEnumerator
.Result .success error
Contains error information if this function returns
CFURLEnumerator
. Error information is retained and must be released. Can beResult .error NULL
.
Return Value
The result of advancing the enumerator.
Discussion
If this function returns CFURLEnumerator
, the enumeration has finished.
A return value of CFURLEnumerator
does not imply that the enumeration has finished.
If this function returns CFURLEnumerator
, the user info dictionary of error
is populated with the following entries (when possible):
The
k
entry is populated with the underlying error if the underlying error is not in theCFError Underlying Error Key k
domain.CFError Domain Cocoa The
NSURLError
entry is populated with the URL that caused the error, as aKey CFURL
object.The
NSFile
entry is populated with the file path that caused the error, as aPath Error Key CFString
object.