Skip to content

Instantly share code, notes, and snippets.

@fjcaetano
Created March 27, 2014 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjcaetano/9814785 to your computer and use it in GitHub Desktop.
Save fjcaetano/9814785 to your computer and use it in GitHub Desktop.
Abstract Method Constant
#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