Re: DO and memory
Re: DO and memory
- Subject: Re: DO and memory
- From: Henry McGilton <email@hidden>
- Date: Sun, 15 Jun 2003 22:08:03 -0700
On Sunday, June 15, 2003, at 09:24 PM, Lloyd Dupont wrote:
* I just realize ! (only now :-( that distant object
* inherit from NSProxy which DO NOT implement retain/release
* mechanism ! (or so it seems if I trust its header)
* could someone shed some light on memory management in DO ?
If you would study the documentation, you would observe that NSObject
does not have the memory management interfaces as part of its core
set of methods. Actually, you did, but did not observe the part
about Adopted Protocols.
Instead, NSObject implements the NSObject Protocol, which includes
all the retain/release stuff.
The documentation of NSProxy states, reasonably clearly:
'NSProxy implements the basic methods required of a root class,
including those defined in the NSObject protocol'.
Lessons to be learned vis a vis Cocoa:
o Be sure to read the superclass specification
o Read the Protocols section of the Kits
o Read the Functions section of the Kits
o Read the Types and Constants section of the Kits
In the Grand Scheme of The Universe, I spy a Documentation
Problem . . .
Best Wishes,
........ HERY
===============================+============================
Henry McGilton, Boulevardier | Trilithon Software
Objective-C/Java Composer | Seroia Research
-------------------------------+----------------------------
mailto:email@hidden |
http://www.trilithon.com
|
===============================+============================
_______________________________________________
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.