chickadee » objc » objc:ivar-set!

objc:ivar-set! OBJECT NAME VALUEprocedure

Sets the value of OBJECT's instance variable NAME to VALUE.

Type conversion is performed on VALUE, based on the ivar type. When the ivar is a #:slot or a #:wrapper, VALUE can be any Scheme object.

Reference counts are automatically managed for id types.

A SRFI-17 setter is also provided, in the form

(set! (objc:ivar-ref OBJECT NAME) VALUE)