• 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
__weak references in non-GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

__weak references in non-GC


  • Subject: __weak references in non-GC
  • From: Roland King <email@hidden>
  • Date: Mon, 1 Feb 2010 22:08:09 +0800

I read the following passage (reproduced verbatim) in a book ..

"Weak references were added in Mac OS X Leopard and effectively zero out the reference if the referenced object is released. This is primarily used when the garbage collector is turned on, but it is a helpful flag to use when doing non-GC development (such as for the iPhone) as well."

This is in a paragraph explaining __weak in a piece of code.

I understand that __weak references are zeroing in GC code but in memory managed code I didn't think they did anything at all. Is the text I quoted incorrect? _______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: __weak references in non-GC
      • From: Corbin Dunn <email@hidden>
    • Re: __weak references in non-GC
      • From: Joar Wingfors <email@hidden>
  • Prev by Date: Weird Parsed HTML string into NSXMLDocument
  • Next by Date: Re: NSDocument "save as" bug
  • Previous by thread: Re: Weird Parsed HTML string into NSXMLDocument
  • Next by thread: Re: __weak references in non-GC
  • Index(es):
    • Date
    • Thread