News for hackers. Stuff that matters.
Re:The most underrated Objective-C Class by edgeman27 on Saturday January 19, 2013 @10:27AM (#5083625)
I recently changed an image cache in one of my projects to use NSCache instead of NSMutableDictionary. I found that when my application was sent to the background (even for a few seconds), the cache was cleared and the images had to be reloaded on resume. This was not suitable for my application since the initial image request was costly, so I went back to the initial NSMutableDictionary implementation.
Re:The most underrated Objective-C Class by sabalaba on Saturday January 19, 2013 @10:12AM (#5083566)
I'm curious if anybody has insight into NSCache's caching algorithm? It would be nice to know the details.