+- (void) actionSheet:(UIActionSheet *)sheet clickedButtonAtIndex:(NSInteger)button {
+ NSString *context([sheet context]);
+
+ if ([context isEqualToString:@"cancel"]) {
+ bool clear;
+
+ if (button == [sheet cancelButtonIndex]) return;
+ else if (button == [sheet destructiveButtonIndex]) clear = true;
+ else clear = false;
+
+ [sheet dismissWithClickedButtonIndex:0xDEADBEEF animated:YES];
+ [book_ popFromSuperviewAnimated:YES];
+ [delegate_ cancelAndClear:clear];
+ }
+}
+