How to call schedule method in NSObject?
Posted
by Tattat
on Stack Overflow
See other posts from Stack Overflow
or by Tattat
Published on 2010-04-24T12:38:39Z
Indexed on
2010/04/24
12:43 UTC
Read the original article
Hit count: 369
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?
© Stack Overflow or respective owner