Created
March 27, 2014 18:32
-
-
Save fjcaetano/9814785 to your computer and use it in GitHub Desktop.
Abstract Method Constant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define kABSTRACT_METHOD @throw [NSException exceptionWithName:NSInternalInconsistencyException reason:[NSString stringWithFormat:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)] userInfo:nil]; | |
This constant should be placed within the project's `.pch` file and be called inside the abstract class' method implementation. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment