• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Simple low memory warning?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple low memory warning?


  • Subject: Re: Simple low memory warning?
  • From: Bill <email@hidden>
  • Date: Tue, 20 Apr 2010 10:23:11 -0700

On Apr 20, 2010, at 10:17 AM, Nick Zitzmann wrote:

>
> On Apr 20, 2010, at 10:10 AM, Bill wrote:
>
>> Does there exist a low-memory warning for Mac apps similar to the didReceiveMemoryWarning for the iPhone?  I have looked at NSCache and other related classes, but for my purposes it would be better to simply receive a low memory warning and then act on the warning.  Does such a warning exist for the Mac?
>
> Unfortunately no, but that would be a good idea, especially in 32-bit apps. Have you filed an enhancement request?
>

No, haven't filed anything yet.  Thought I'd wait to see if anything like that existed first.

My app has several tasks that collect data via a loop and display it on a table.  Objects are retained as they're displayed so the objects don't have to be recalculated next time they're displayed.  But if I received a low-memory warning, I could release that data, and recalculate it later if needed.  Seems simple enough, but I don't know how to find out when memory is low.

-Bill

_______________________________________________

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

  • Follow-Ups:
    • Re: Simple low memory warning?
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Simple low memory warning? (From: Bill <email@hidden>)
 >Re: Simple low memory warning? (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: CoreData: updating property of fetched object and refetching
  • Next by Date: Re: Simple low memory warning?
  • Previous by thread: Re: Simple low memory warning?
  • Next by thread: Re: Simple low memory warning?
  • Index(es):
    • Date
    • Thread