Re: NSTimer and Selector
Re: NSTimer and Selector
- Subject: Re: NSTimer and Selector
- From: Andy Lee <email@hidden>
- Date: Tue, 10 Apr 2007 17:26:59 -0400
On Apr 10, 2007, at 5:18 PM, Andrew James wrote:
2007-04-10 21:00:00.348 SleepLock[7030] *** -[NSCFTimer
scheduledTimerWithTimeInterval:invocation:repeats:]: selector not
recognized [self = 0x37bf60]
2007-04-10 21:00:00.349 SleepLock[7030] *** -[NSCFTimer
scheduledTimerWithTimeInterval:invocation:repeats:]: selector not
recognized [self = 0x37bf60]
+scheduledTimerWithTimeInterval:invocation:repeats: is a class method
of NSTimer, not an instance method. You want to say:
[NSTimer scheduledTimerWithTimeInterval:...]
...without the alloc.
--Andy
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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