On Mar 12, 2008, at 11:40 AM, Alexander Cohen wrote:

Is there any way to be notified when my app is running low on memory?

Not really.

My app is very memory intensive and needs to have a lot of images in memory at the same time, id like to be able to clear some cache if memory gets too low.


If you're using Leopard, then consider releasing a 64-bit version of your application.

If you're using Tiger, then consider using the NSZone API with zones that will not grow (zero granularity). Then, if object allocation isn't working, then at least your app won't crash.

Either way, if your app creates lots of temporary objects, then you should wrap them in NSAutoreleasePools.

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to