objective-c/foundation.lisp
Acquire one retain on object and return a distinct owned wrapper for it.
Consume object's one owned retain and make that wrapper unusable.
Bind variable to FORM's owned object and release it when body leaves.
Run body inside one explicitly drained Foundation autorelease pool.
Copy an NSString-compatible object into a Lisp string.
Return an autoreleased NSString containing string.
The result is borrowed and must remain inside its surrounding autorelease pool. Native APIs which copy an NSString argument may retain it beyond that scope in the ordinary Objective-C way.
Copy NSError's localized description into a Lisp string.
(name (selector result-type &key ownership class consumes-receiver)
&body arguments)(object)(object)((variable form) &body body)(receiver)Validate that RECEIVER owns the retain a message consumes.
(() &body body)(object)(string)Return an autoreleased NSString containing STRING. The result is borrowed and must remain inside its surrounding autorelease pool. Native APIs which copy an NSString argument may retain it beyond that scope in the ordinary Objective-C way.
Foundation vocabulary needed by the general Objective-C boundary.