WeakCache?
WeakCache?
- Subject: WeakCache?
- From: petite_abeille <email@hidden>
- Date: Mon, 28 Apr 2003 15:50:54 +0200
Hello,
I need to implement something along the line of a weak cache, i.e. a
cache which doesn't retain its content. My initial thought was to use a
NSDictionary and wrap its values in a
NSValue.valueWithNonretainedObject as to not retain them. But... when
retrieving an object from the cache... how do I know if it was released
or not? Is NSValue.nonretainedObjectValue going to magically returns a
nil value if the object was released? How do I know about the
whereabout of a nonretainedObjectValue? Any insights welcome :-)
Thanks.
Cheers,
PA.
_______________________________________________
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.