• 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: Use of weak reference in non-circular reference situation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Use of weak reference in non-circular reference situation


  • Subject: Re: Use of weak reference in non-circular reference situation
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 31 May 2006 04:52:26 -0700


On May 31, 2006, at 3:14 AM, Eric wrote:

 Since aArray is not
deallocated until Object A is deallocated,


It's not clear why "aArray" should know or care whether A is deallocated. The usual semantics are that an NSArray retains its contents, and releases them when they're removed or the array itself is deallocated. Whether anything else has retained A shouldn't matter to "aArray" at all.

-jcr

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Use of weak reference in non-circular reference situation
      • From: Eric <email@hidden>
References: 
 >Use of weak reference in non-circular reference situation (From: Eric <email@hidden>)

  • Prev by Date: Prevent transient attributes to mark the database as dirty ?
  • Next by Date: Re: Exposing Methods in a Framework
  • Previous by thread: Use of weak reference in non-circular reference situation
  • Next by thread: Re: Use of weak reference in non-circular reference situation
  • Index(es):
    • Date
    • Thread