Check to make sure an object supports a method before calling it
Rate
0
if ([item respondsToSelector:@selector(activateBOP:)]) {
[item activateBOP:closeBOP];
}
Posted 11/16/2010 04:30AM by Anonymous
Comments
No comments have been posted
Want to learn great syntax? Have great syntax to share? Syntactic Sugr is a community of expert developers sharing syntactic sugar and other powerful snippets.
Comments
No comments have been posted