• 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: Efficient object wrappers and GC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficient object wrappers and GC


  • Subject: Re: Efficient object wrappers and GC
  • From: David Duncan <email@hidden>
  • Date: Fri, 11 Apr 2008 11:42:34 -0700

On Apr 11, 2008, at 10:25 AM, Buddy Kurz wrote:

I'm wondering if it would make sense (or be possible) to override - retain and -release to increment/decrement your own variable in addition to using the inherited behavior. In the GC environment, the inherited retain does nothing but in either environment your enumerator can detect the retain by checking your variable.


It isn't that the inherited retain(release/retainCount/autorelease) do nothing, its that they are no-op'd. They are neutered at the the level of message dispatcher which means that under GC your class will *never* see these messages.

See <http://developer.apple.com/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcDesignPatterns.html >
--
David Duncan
Apple DTS Animation and Printing
email@hidden




_______________________________________________

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: 
 >Efficient object wrappers and GC (From: Alastair Houghton <email@hidden>)
 >Re: Efficient object wrappers and GC (From: "Michael Ash" <email@hidden>)
 >Re: Efficient object wrappers and GC (From: Alastair Houghton <email@hidden>)
 >Re: Efficient object wrappers and GC (From: Buddy Kurz <email@hidden>)

  • Prev by Date: Restoring Tiger NSTableView behaviour in Leopard
  • Next by Date: Re: Core Data and the Document Dirty indicator
  • Previous by thread: Re: Efficient object wrappers and GC
  • Next by thread: Re: Efficient object wrappers and GC
  • Index(es):
    • Date
    • Thread