• 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
Performance and NSTimee
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Performance and NSTimee


  • Subject: Performance and NSTimee
  • From: Taxxodium <email@hidden>
  • Date: Fri, 8 Feb 2002 17:56:12 +0100

Hello,

I have written an app that needs to refresh itself every second. But the problem is that it uses 10% or more from the processor. How can I make sure my app uses less processing time and still keeps updating itself every second?

This is how my code looks like:

timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(refresh:) userInfo:0 repeats:YES];

Thanks,
Jesus
______________________________
Jesus De Meyer
CEO @ E dot software
http://homepage.mac.com/edotsoftware
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Modal Window in IB
  • Next by Date: Re: Removing NSLog & NSAssert for deployment
  • Previous by thread: Re: Modal Window in IB
  • Next by thread: Re: Performance and NSTimee
  • Index(es):
    • Date
    • Thread