Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

A performIfResponds proxy for NSObject. Never use -respondsToSelector again.

For example, this:

if([self.delegate respondsToSelector:@selector(fooForBar:]) {
	foo = [self.delegate fooForBar:self]:
}

becomes this:

foo = [[self.delegate performOrReturn:nil] fooForBar:self]:

See bou.io/PerformIfResponds for more details.

About

Never use respondsToSelector: anymore!

Resources

Releases

No releases published
You can’t perform that action at this time.