Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Problems with NSTimer and NSRunLoop/CFRunLoop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with NSTimer and NSRunLoop/CFRunLoop



I have a timer that is not being added to the run loop, and for the life of me I can't figure out why.

I call:

[NSTimer scheduledTimerWithTimeInterval:120
target:self

selector:@selector(performExpirationCheck:)
userInfo:nil

repeats:YES]

And, I verified that this calls:

CFRunLoopAddTimer

but when the call to NSTimer returns the run loop does not have the timer added.

Does anyone have any idea what might be going on, or even a suggestion on how to debug this? (man would I kill for all of the Cocoa/CF code to be open-source!)

Thanks,
-Mont
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.