Re: different EC for WODisplayGroup?
Re: different EC for WODisplayGroup?
- Subject: Re: different EC for WODisplayGroup?
- From: Nathan Dumar <email@hidden>
- Date: Thu, 4 Nov 2004 14:19:41 -0500
On Nov 4, 2004, at 1:59 PM, Chuck Hill wrote:
Imagine two objects, A and B, where A has a relationship to B:
A -> B
If the relationship is strong, then B can't be garbage collected until
A is
garbage collected or A removes its reference to B. This his how Java
objects normally work. Weak references stand in the middle:
A -> reference -> B
In this scenario, B can be garbage collected. They are used in cases
where
object A can use a reference to object B, but does not absolutely
require it.
Ah, I see. I probably should have known that by now.
How can you tell when a reference is strong or weak?
Special classes are used to make weak references. Google 'Java weak
reference'. It is a Java thing, not a WO thing.
I'll do that. This is very useful knowledge.
I also found a better description under Legacy Technologies, at Apple:
http://developer.apple.com/documentation/LegacyTechnologies/
WebObjects/
WebObjects_5/Topics/ProgrammingTopics.15.html
This gives me the understanding I need to do it. I should have looked
a little harder before asking.
Being a former IT technical writer, I don't know why they upgrade the
documentation by making it less informative and less useful.
It increases consulting revenue. :-P
Chuck
Hah! Something I might eventually be grateful for. But not yet.
Thanks for taking the time to explain the strong and weak references.
I appreciate it.
Take care,
Nathan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden