• 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: NSTimer preventing sleep?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer preventing sleep?


  • Subject: Re: NSTimer preventing sleep?
  • From: "Hamish Allan" <email@hidden>
  • Date: Thu, 24 Jan 2008 21:02:12 +0000

On Jan 24, 2008 7:36 PM, Jacob Bandes-Storch <email@hidden> wrote:

> I have to load images from disk each time the timer is called. I
> suppose I could try to load them all into memory before starting the
> timer... But that would hog resources... What other options do I have?

Pre-load n of them, where n = ceil(system sleep timer interval / your
timer interval). Do this each time you detect activity.

Hamish
_______________________________________________

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

References: 
 >NSTimer preventing sleep? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTimer preventing sleep? (From: John Stiles <email@hidden>)
 >Re: NSTimer preventing sleep? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTimer preventing sleep? (From: William Turner <email@hidden>)
 >Re: NSTimer preventing sleep? (From: Jacob Bandes-Storch <email@hidden>)
 >Re: NSTimer preventing sleep? (From: "Shawn Erickson" <email@hidden>)
 >Re: NSTimer preventing sleep? (From: Jacob Bandes-Storch <email@hidden>)

  • Prev by Date: Re: Nib ownership and retain count
  • Next by Date: Re: Changing CALayer's contents too rapidly causes CoreAnimation to implode?
  • Previous by thread: Re: NSTimer preventing sleep?
  • Next by thread: Re: NSTimer preventing sleep?
  • Index(es):
    • Date
    • Thread