Okay guys…
Hopefully this will be another quickie.
I have a class MonsterView, extending UIImageView, extending NSObject.
I have declared a MonsterView pointer called myMonster that contains an object of class MonsterView and looks something like this…
MonsterView* myMonster = [monsterArray objectAtIndex:0];
Now the pointer myMonster points to an object of class MonsterView.
I have a method like:
-(void) takeTurnHostile:(MonsterView*) monster
{
// Do Stuff
}
I want to call this method by using performSelector…
Like THIS:
[self performSelector:@selector(takeTurnHostile) withObject:myMonster afterDelay:0.1];
The bloody machine will not have any such nonsense.
Why in the name of all that is good and holy can’t I do this?
More importantly, how -COULD- I do this?
Thanks, guys!
J-Rock
should be
because your selector takes an argument, and the colon is part of the selector name.