Could someone tell me what exactly NSCFTimer is? I get it when I ask NSTimer for a timer.
My problem is that I’m trying to check if an object (supposedly an NSTimer, note the word “supposedly” which is why I’m checking) is an object of class NSTimer, it doesn’t seem to work. Does this “NSCFTimer” in any way… hinder the process?
Could someone tell me what exactly NSCFTimer is? I get it when I ask
Share
NSCFTimeris an implementation detail of the Foundation and CoreFoundation frameworks. It is a subclass ofNSTimerand, thus,isKindOfClass:will work just fine.It does beg the question, though, of why you might have a reference to an object that might or might not be a Timer. The only sources of timers are either of your creation or well defined methods within the frameworks. Thus, such uncertainty is both atypical and oft indicates an underlying design problem.