Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Element subclasses expecting events must handle them
Browse files Browse the repository at this point in the history
  • Loading branch information
drpancake committed Apr 21, 2012
1 parent 37b55a7 commit 5d060bd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ios/CBElementViewController.m
Expand Up @@ -66,12 +66,8 @@ - (void)fireEvent:(CBEvent *)event

- (void)sender:(id)sender didFireEvent:(CBEvent *)event
{
if ([sender isKindOfClass:[CBElementViewController class]]) {
// Forward the event upwards
[self fireEvent:event];
} else {
NSLog(@"%@ got an unexpected event: %@", self, event);
}
[NSException raise:NSInternalInconsistencyException
format:@"You must override %@ in a subclass", NSStringFromSelector(_cmd)];
}

@end

0 comments on commit 5d060bd

Please sign in to comment.