chickadee » objc » objc:send/maybe-safe

(objc:send/maybe-safe RECEIVER KEYWORD1 ARGUMENT1 ...)syntax

Identical to objc:send/safe when the object or class (or any superclass) is implemented in Scheme, and to objc:send otherwise. In general, this greatly improves invocation time for pure Objective C classes and objects, has a negligible impact on Scheme classes, and incurs a 10% penalty for Scheme instances. This optimization can be disabled by setting the parameter objc:optimize-callbacks to #f---in which case a safe call will always be used.