| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #import "DrawerPresenter.h" | 5 #import "DrawerPresenter.h" |
| 6 | 6 |
| 7 @interface PanePresenter : NSObject <ViewPresenter, NodePresenter> | 7 @interface PanePresenter : NSObject <ViewPresenter, NodePresenter> |
| 8 | 8 |
| 9 @property DynamicPresenter presenter; | 9 @property DynamicPresenter presenter; |
| 10 @property bool empty; | 10 @property bool empty; |
| 11 @property UIViewController* emptyViewController; | 11 @property UIViewController* emptyViewController; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 [self.presenter patchNode:patch]; | 164 [self.presenter patchNode:patch]; |
| 165 } | 165 } |
| 166 | 166 |
| 167 - (UIViewController*)viewController { | 167 - (UIViewController*)viewController { |
| 168 if (self.presenter == nil) return nil; | 168 if (self.presenter == nil) return nil; |
| 169 return self.empty ? self.emptyViewController | 169 return self.empty ? self.emptyViewController |
| 170 : [self.presenter viewController]; | 170 : [self.presenter viewController]; |
| 171 } | 171 } |
| 172 | 172 |
| 173 @end | 173 @end |
| OLD | NEW |