Function

CFMakeCollectable

Makes a newly-allocated Core Foundation object eligible for garbage collection.

Declaration

CFTypeRef CFMakeCollectable(CFTypeRef cf);

Parameters

cf

A CFType object to make collectable. This value must not be NULL.

Return Value

cf.

Discussion

For more details, see Garbage Collection Programming Guide.

Special Considerations

If cf is NULL, this will cause a runtime error and your application will crash.

See Also

Memory Management

CFGetAllocator

Returns the allocator used to allocate a Core Foundation object.

CFGetRetainCount

Returns the reference count of a Core Foundation object.

CFRelease

Releases a Core Foundation object.

CFRetain

Retains a Core Foundation object.