Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Objective-c > Old school memo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 1000 of 1039
Post > Topic >>

Old school memory management

by "copx" <copx@[EMAIL PROTECTED] > Jun 30, 2008 at 10:21 AM

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?
 




 3 Posts in Topic:
Old school memory management
"copx" <copx  2008-06-30 10:21:53 
Re: Old school memory management
Gregory Weston <uce@[E  2008-06-30 10:06:24 
Re: Old school memory management
"copx" <copx  2008-07-01 05:19:18 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 7:42:20 CDT 2008.