I am learning Objective-C right now. but I don't want to dependent on the
various NSObject frameworks. I want to use GNU's "Object " runtime
instead.
Another thing I want to avoid is automatic memory management. I have
programmed
in straight C for over a decade and manual memory management has never
been an
issue for me. And I don't like the unpredictability of garbage collection.
Question is (using GNU runtime and "Object") I can alloc/init objects
with:
[class alloc [init]]
and free them with [free] .. it seems. I say it seems because I couldn't
find any
do***entation for (non-garbage collected) GNU runtime memory management.
Everything is focused on NSObject. It seems that at least NSObject
implements all
kinds of automatic calls to [dealloc], and you have to manage this stuff
with messages
like [retain] [autorelease] or whatever.
Does Object do any automatic calls to [free] too? Or can I management
Objects using
alloc / free like I manage malloc()ed objects in C?