• 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
NSTimer does NOT repeat, why ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTimer does NOT repeat, why ?


  • Subject: NSTimer does NOT repeat, why ?
  • From: Florian Soenens <email@hidden>
  • Date: Thu, 18 Sep 2008 11:18:02 +0200

Hi list,

anyone knows why in this simple piece of code, the method testTimer is only called once and not every 2 seconds?

Thanks in advance;
Florian.

#import "Controller.h"

@implementation Controller

-(void) awakeFromNib
{
NSLog(@"Creating NSTimer");
timer = [[NSTimer timerWithTimeInterval:2.0 target:self selector:@selector(testTimer) userInfo:nil repeats:YES] retain];
[timer fire];
}


-(void) testTimer
{
	NSLog(@"Test");
}


@end

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information and/or information protected by intellectual property rights. If you are not the intended recipient, please note that any review, dissemination, disclosure, alteration, printing, copying or transmission of this e-mail and/or any file transmitted with it, is strictly prohibited and may be unlawful. If you have received this e-mail by mistake, please immediately notify the sender and permanently delete the original as well as any copy of any e-mail and any printout thereof. We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium _______________________________________________

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: NSTimer does NOT repeat, why ?
      • From: Thomas Davie <email@hidden>
    • Re: NSTimer does NOT repeat, why ?
      • From: Jason Coco <email@hidden>
  • Prev by Date: Re: Existence of Network
  • Next by Date: Re: NSTimer does NOT repeat, why ?
  • Previous by thread: Re: Existence of Network
  • Next by thread: Re: NSTimer does NOT repeat, why ?
  • Index(es):
    • Date
    • Thread