Re: Memory Full or not
Re: Memory Full or not
- Subject: Re: Memory Full or not
- From: Wade Tregaskis <email@hidden>
- Date: Sun, 27 Jul 2003 18:45:17 +1000
Is there a way to get a low-memory warning? Like a notification or
call-back of some type? Or even a periodic check? I seem to remember a
way to do this is Classic, where it would call a function when memory
was low. This would let the app clear caches and the like to free up
memory.
On some Unix's there is a signal which is sent when memory is low,
allowing programs to be nice and free up any space they can.
Unfortunately there doesn't seem to be any such thing on Darwin, nor
any equivalent system. It probably wouldn't be too much work to add
such a signal to Darwin, and I plan to do so myself if no one else does
in the next 6 months. But whether or not Apple will accept such a
feature is unknown... I haven't submitted anything to Darwin myself,
but I've heard from a few people that Apple are pretty conservative in
this regards.
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
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.