Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (int)dangerousMethod
- {
- [NSException raise:@"Danger!" format:@"Do not call send this method directly to this subclass"];
- return nil;
- }
- @implementation MyClass
- -(void)myMethod:(NSString *)txt{
- if([self class] != [MyClass class]) return;
- NSLog(@"Hello");
- }
- @end
Add Comment
Please, Sign In to add comment