Error codes in the Cocoa error domain.
- iOS 2.0+
- macOS 10.4+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The constants in this enumeration are
NSError code numbers in the Cocoa error domain (
NSCocoa). Other frameworks, most notably the Application Kit, provide their own
NSCocoa error codes.
The enumeration constants beginning with
NSFile indicate file-system errors or errors related to file I/O operations. Use the key
NSFile or the
NSURLError (whichever is appropriate) to access the file-system path or URL in the
user dictionary of the