Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The most underrated Objective-C Class (stephenbalaban.com)
3 points by sabalaba on Jan 19, 2013 | hide | past | favorite | 2 comments


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.


I'm curious if anybody has insight into NSCache's caching algorithm? It would be nice to know the details.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: