Re: Leaking Memory
Re: Leaking Memory
- Subject: Re: Leaking Memory
- From: Denis Stanton <email@hidden>
- Date: Tue, 21 Jan 2003 14:34:24 +1300
Hi Shawn
On Tuesday, January 21, 2003, at 01:51 PM, Shawn Erickson wrote:
On Monday, January 20, 2003, at 04:09 PM, John C. Randolph wrote:
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.
Oh, now your really gonna confuse the new folks ;-)
As one of the New Folk here, struggling to learn the Obj-C way, I
appreciate John's pedantry. My instinct would be to "call", as if I
was calling a function, so being reminded that these are not functions
they are messages is actually helpful.
Speaking of pedantry, I think you mean "now you're really", where
"you're" is a contraction of " you are". "your really" states that the
really belongs to you. :-)
Denis
_______________________________________________
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.