Re: Cocoa - Naive questions about memory
Re: Cocoa - Naive questions about memory
- Subject: Re: Cocoa - Naive questions about memory
- From: Karl Goiser <email@hidden>
- Date: Wed, 7 May 2003 08:53:25 +1000
Here is my naive take on memory:
- if you alloc it, you have to release it.
- otherwise, every retain must be matched by a release
- if you use a Cocoa function that returns a pointer, it has been
autoreleased.
I haven't had to look at copy functions yet, so I don't know about them.
Karl
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.