Re: Leaking Memory
Re: Leaking Memory
- Subject: Re: Leaking Memory
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 Jan 2003 16:09:59 -0800
On Monday, January 20, 2003, at 03:42 PM, Shawn Erickson wrote:
This is done in Objective-C using a "retain" counting system that
allows an object to delete itself when it is no longer needed. To ask
an object in Objective-C to remain one simply calls retain().
Sorry to be overly pedantic here, but in Objective-C, you send -retain,
you don't call retain(). In Obj-C, we don't call methods, we send
messages. The runtime calls methods after looking up the message.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.