Assigning a selector via SEL type?
- by fuzzygoat
I just spotted the following in an online tutorial. It showed 001 as a method for assigning a selector, however I could not get this to work. Am I right in thinking that 001 is not right and 002 is the correct way, or am I doing something wrong with 001?
// 001
SEL mySel = [self something];
// 002
SEL mySel = @selector(something);
.
-(void)something {
NSLog(@"YAY");
}
Gary