• 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: Guidelines for Cocoa frameworks supporting garbage collection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Guidelines for Cocoa frameworks supporting garbage collection?


  • Subject: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • From: Bill Cheeseman <email@hidden>
  • Date: Sun, 06 Jul 2008 13:55:10 -0400
  • Thread-topic: Guidelines for Cocoa frameworks supporting garbage collection?

on 2008-07-06 11:35 AM, Michael Ash at email@hidden wrote:

> You might use __weak if you want a zeroing weak reference. But this
> is
extremely uncommon in a dual-mode framework such as what you're
writing,
> because there's no equivalent to __weak in the non-GC world.

There is a weak retain technique, and I use it in one of my frameworks. It
was outlined by Ken Case of OmniGroup many years ago. See
www.cocoadev.com/index.pl?WeakReferences. I anticipate that I may use __weak
to replace this when my framework is used in a garbage collection
environment.

--

Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
www.quecheesoftware.com

PreFab Software - www.prefabsoftware.com


_______________________________________________

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

References: 
 >Re: Guidelines for Cocoa frameworks supporting garbage collection? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Next by Date: How to create to-many accessor methods at runtime
  • Previous by thread: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Next by thread: Re: Guidelines for Cocoa frameworks supporting garbage collection?
  • Index(es):
    • Date
    • Thread