Re: Getting notified when memory gets tight

2010-07-02 Thread Graham Cox
On 03/07/2010, at 9:47 AM, Jens Alfke wrote: > > On Jul 2, 2010, at 12:14 AM, Graham Cox wrote: > >> 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 giv

Re: Getting notified when memory gets tight

2010-07-02 Thread Jens Alfke
On Jul 2, 2010, at 12:14 AM, Graham Cox wrote: > 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

Getting notified when memory gets tight

2010-07-02 Thread Graham Cox
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