objc:gc

(objc:gc [bool])


Description:

turns on or off automatic memory management of objc-objects. if on (as it is be default) objc-objects will be released during the usual scheme gc cycle (objc-objects are always retained before being passed into scheme world). if you turn off gc you will need to destroy objc-objects manually by calling objc:destroy, image-destroy etc.  Providing no argument returns the current setting


Arguments:

           bool -- turs on or off objc garbage collection


Returns: boolean


Related: objc:call objc:make objc:destroy image-destroy is-objc? 


Examples:



Back to index