How to call schedule method in NSObject?
- by Tattat
It is my Object....
-(id)init{
if(self = [super init]){
[self schedule:@selector(testCalled:) interval:1.0];
}
}
-(void)testCalled{
NSLog(@"Called from my Object");
}
I already add this line in the .h...:
-(void)testCalled;
It prompt me that "MyObject" may not respond to -'schedule:interval:', but in my scene, which have a super class CCLayer can call this method,so, I think it is a method from CCLayer, how can I replace it with NSObject default method?