Getting notified when memory gets tight
Getting notified when memory gets tight
- Subject: Getting notified when memory gets tight
- From: Graham Cox <email@hidden>
- Date: Fri, 2 Jul 2010 17:14:54 +1000
On 10.6, NSCache is handy for caching stuff that I can afford to simply drop as needed - it works great.
I'd like to be able to do something a bit like it on 10.5. Is there a notification or other callback I can use to get notified when the system is running low on memory for my app, to give it an opportunity to discard stuff before it starts paging memory out?
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden