Re: memory warnings
Re: memory warnings
- Subject: Re: memory warnings
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 12 Mar 2008 11:53:39 -0600
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 (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