[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO4: Can't get NSTimer to work




Strange... I have just setup exactly the same timer (except lower
frequency), and it works fine. Are there any other problems with your
installation? Maybe it is something to do with
uninstalling/reinstalling from 3.51 to 4.0, I've noticed several
subject headings with that mentioned as a problem (although I think
mainly they are registry-type problems).

Presumably you have the aTimer variable as an instance var, and you
have the -revUp:(someType) someArg method implemented, and the timer
code is being called? Everything else in the app is standard? 

---
Mike Llewellyn
Nexan Telemed Ltd.


On Thu, 7 Jan 1999 13:52:33 -0800 (PST), Ian Calegory <ian@i-225.com>
wrote:

>Hello,
>
>I can't get NSTimer to work under WebObjects 4.0.  I'm starting to get
>the feeling it may be a bug.
>
>Here's what I do:  I create an NSTimer by doing the following:
>
>aTimer = [[NSTimer
>    scheduledTimerWithTimeInterval:60.0
>    target:self
>    selector:@selector(revUp:)
>    userInfo:nil repeats:YES
>] retain];
>
>This ran fine under WO 3.51.  Now, however, the NSTimer never fires.  I
>query the timeInterval of the NSTimer like this:  [aTimer timeInterval],
>and it returns zero for the value.  Ouch.  It should be 60 (as you can
>see above).
>
>Thanks for any help,
>Ian