Permalink
Browse files

All open/close/toggle methods now return a BOOL indicating that the v…

…iew as open/closed/toggled.

Gives an indication whether the delegate blocked the action or not.
  • Loading branch information...
1 parent d4fe2e2 commit 9e2e9554c2876da9398473172bd47a8ce620dac6 @Inferis Inferis committed May 9, 2012
Showing with 149 additions and 108 deletions.
  1. +23 −23 ViewDeck/IIViewDeckController.h
  2. +126 −85 ViewDeck/IIViewDeckController.m
@@ -98,29 +98,29 @@ typedef enum {
- (void)setLeftLedge:(CGFloat)rightLedge completion:(void(^)(BOOL finished))completion;
- (void)setRightLedge:(CGFloat)rightLedge completion:(void(^)(BOOL finished))completion;
-- (void)toggleLeftView;
-- (void)openLeftView;
-- (void)closeLeftView;
-- (void)toggleLeftViewAnimated:(BOOL)animated;
-- (void)toggleLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)openLeftViewAnimated:(BOOL)animated;
-- (void)openLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)closeLeftViewAnimated:(BOOL)animated;
-- (void)closeLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)closeLeftViewBouncing:(void(^)(IIViewDeckController* controller))bounced;
-- (void)closeLeftViewBouncing:(void(^)(IIViewDeckController* controller))bounced completion:(void(^)(IIViewDeckController* controller))completed;
-
-- (void)toggleRightView;
-- (void)openRightView;
-- (void)closeRightView;
-- (void)toggleRightViewAnimated:(BOOL)animated;
-- (void)toggleRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)openRightViewAnimated:(BOOL)animated;
-- (void)openRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)closeRightViewAnimated:(BOOL)animated;
-- (void)closeRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
-- (void)closeRightViewBouncing:(void(^)(IIViewDeckController* controller))bounced;
-- (void)closeRightViewBouncing:(void(^)(IIViewDeckController* controller))bounced completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)toggleLeftView;
+- (BOOL)openLeftView;
+- (BOOL)closeLeftView;
+- (BOOL)toggleLeftViewAnimated:(BOOL)animated;
+- (BOOL)toggleLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)openLeftViewAnimated:(BOOL)animated;
+- (BOOL)openLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)closeLeftViewAnimated:(BOOL)animated;
+- (BOOL)closeLeftViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)closeLeftViewBouncing:(void(^)(IIViewDeckController* controller))bounced;
+- (BOOL)closeLeftViewBouncing:(void(^)(IIViewDeckController* controller))bounced completion:(void(^)(IIViewDeckController* controller))completed;
+
+- (BOOL)toggleRightView;
+- (BOOL)openRightView;
+- (BOOL)closeRightView;
+- (BOOL)toggleRightViewAnimated:(BOOL)animated;
+- (BOOL)toggleRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)openRightViewAnimated:(BOOL)animated;
+- (BOOL)openRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)closeRightViewAnimated:(BOOL)animated;
+- (BOOL)closeRightViewAnimated:(BOOL)animated completion:(void(^)(IIViewDeckController* controller))completed;
+- (BOOL)closeRightViewBouncing:(void(^)(IIViewDeckController* controller))bounced;
+- (BOOL)closeRightViewBouncing:(void(^)(IIViewDeckController* controller))bounced completion:(void(^)(IIViewDeckController* controller))completed;
- (BOOL)leftControllerIsClosed;
- (BOOL)leftControllerIsOpen;
Oops, something went wrong.

0 comments on commit 9e2e955

Please sign in to comment.