• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: different EC for WODisplayGroup?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: different EC for WODisplayGroup? (From: Chuck Hill <email@hidden>)
 >different EC for WODisplayGroup? (From: Nathan Dumar <email@hidden>)
 >Re: different EC for WODisplayGroup? (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: different EC for WODisplayGroup?
  • Next by Date: Changing the order of stringQualifierOperators array
  • Previous by thread: Re: different EC for WODisplayGroup?
  • Next by thread: Performance
  • Index(es):
    • Date
    • Thread