• 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
WeakCache?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: WeakCache?
      • From: Karl Goiser <email@hidden>
    • Re: WeakCache?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: converting text input in any encoding to unicode
  • Next by Date: Re: OT: Re: Hiding an NSTextField
  • Previous by thread: Hiding empty NSButton cells in a matrix
  • Next by thread: Re: WeakCache?
  • Index(es):
    • Date
    • Thread