curiouswebster
asked on
Objective C: Please explain SEL and selector
I am a former C++ developer and currently C#, but this Objective C is not at all clear to me.
I read up on it and it became less clear. Please explain SEL and selector.
Thanks!
Feel free to use (or not use) my sample source code:
//notify the delegate if steps are completed
-(BOOL)CheckStepsComplete{
if (_priorStepCompleted == _numSteps) {
if([self.delegate respondsToSelector:@select or(IsFinis hed)]){
[self.delegate performSelector:@selector( IsFinished )];
}
return YES;
}
return NO;
}
I read up on it and it became less clear. Please explain SEL and selector.
Thanks!
Feel free to use (or not use) my sample source code:
//notify the delegate if steps are completed
-(BOOL)CheckStepsComplete{
if (_priorStepCompleted == _numSteps) {
if([self.delegate respondsToSelector:@select
[self.delegate performSelector:@selector(
}
return YES;
}
return NO;
}
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER