Re: WeakCache?
Re: WeakCache?
- Subject: Re: WeakCache?
- From: Marco Scheurer <email@hidden>
- Date: Mon, 28 Apr 2003 17:43:20 +0200
I see... but if I need to proactively remove an object from a cache in
dealloc, this creates a very unfortunate dependency between the object
and its cache... something I would like to avoid altogether :/ Any
idea about how to implement a generic weak cache mechanism which
doesn't depends on any help from the objects it's holding to stay
valid?
What about a cache which retains its objects as usual, but periodically
checks their retain counts and release them when there's only one
reference left?
Marco Scheurer
Sen:te, Lausanne, Switzerland
http://www.sente.ch
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.