Using Xcode.
In this code (func is declared in interface), tells subj error, standing on string with ‘self’.
+ (void) run: (Action) action after: (int) seconds
{
[self run:action after:seconds repeat:NO];
}
What the… ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
selfis an instance variable used to refer to an instance of the current object.You are attempting to use it in a class level method
+(void)...whereselfhas no meaning. Try using a shared instance, or passing an instance of the class in question to the method.EDIT
My commenters have pointed out that
selfdoes have meaning in class level contexts, but it refers to the class itself. That would mean you were trying to call a method that looks like this:Where you should be aiming for: