• 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: Coding with VM limitation on the iPhone?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coding with VM limitation on the iPhone?


  • Subject: Re: Coding with VM limitation on the iPhone?
  • From: Bryan Henry <email@hidden>
  • Date: Tue, 18 Aug 2009 19:37:13 -0400

The proper way to manage large objects that can be easily reloaded as needed is to make sure and respond to memory warnings. The exact amount of memory available to your application depends on both the device (which could vary greatly in terms of hardware resources) and other processes running in the background (like MobileMail, for instance). Luckily for you, the OS handles determining when you're running low on memory and sends notifications to that affect (as well as doing other things).

- Bryan

Sent from my iPhone

On Aug 18, 2009, at 7:34 PM, Jonathon Kuo <email@hidden > wrote:

I'm writing an app for the iPhone, but I need to be mindful how much virtual memory there is available to the app when it runs, so I can manage allocing and deallocing some large arrays. I'm guessing that the OS runs in a small amount (100MB?) of flash memory compared to the 16GB or 32GB of general storage memory? Also, is there a system call I can invoke from within my app to determine how large it is getting?

_______________________________________________

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
_______________________________________________

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: Coding with VM limitation on the iPhone?
      • From: Bryan Henry <email@hidden>
References: 
 >Coding with VM limitation on the iPhone? (From: Jonathon Kuo <email@hidden>)

  • Prev by Date: Re: Coding with VM limitation on the iPhone?
  • Next by Date: Re: Coding with VM limitation on the iPhone?
  • Previous by thread: Re: Coding with VM limitation on the iPhone?
  • Next by thread: Re: Coding with VM limitation on the iPhone?
  • Index(es):
    • Date
    • Thread