Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 526 Bytes

objc-ns-error-code.md

File metadata and controls

14 lines (11 loc) · 526 Bytes

objc:ns-error-code

(objc:ns-error-code condition)

The code of the NSError an objc:ns-error carries, an integer. A reader of a condition of the macOS-only objc package; see the macOS GUI guide.

MY-APP> (defvar *e* (handler-case (invoke-with-error (invoke "NSFileManager" "defaultManager")
                                                     "attributesOfItemAtPath:error:" "/no/such/file")
                      (ns-error (e) e)))
*E*
MY-APP> (ns-error-code *e*)
260