]>
Commit | Line | Data |
---|---|---|
275d8115 | 1 | #import <UICaboodle/UCPlatform.h> |
7e9a36b6 | 2 | |
facbc56d | 3 | #import <UIKit/UIKit.h> |
7b0ce2da | 4 | |
35f0a3b5 GP |
5 | @interface UIViewController (Cydia) |
6 | - (BOOL) hasLoaded; | |
7 | @end | |
8 | ||
9b623dac | 9 | @interface CYViewController : UIViewController { |
c6ae04cf | 10 | _transient id delegate_; |
fe8e721f | 11 | BOOL loaded_; |
7e9a36b6 | 12 | } |
35f0a3b5 GP |
13 | |
14 | // The default implementation of this method is essentially a no-op, | |
15 | // but calling the superclass implementation is *required*. | |
c21004b9 | 16 | - (void) reloadData; |
6840bff3 | 17 | |
6c0ba3d9 JF |
18 | - (void) unloadData; |
19 | ||
35f0a3b5 GP |
20 | // This URL is used to save the state of the view controller. Return |
21 | // nil if you cannot or should not save the URL for this page. | |
6840bff3 JF |
22 | - (NSURL *) navigationURL; |
23 | ||
35f0a3b5 GP |
24 | // By default, this delegate is unused. However, it's provided here in case |
25 | // you need some kind of delegate in a subclass. | |
fe8e721f | 26 | - (void) setDelegate:(id)delegate; |
6840bff3 JF |
27 | - (id) delegate; |
28 | ||
35f0a3b5 GP |
29 | // Override this in subclasses if you manage the "has seen first load" state yourself. |
30 | - (BOOL) hasLoaded; | |
6840bff3 | 31 | |
35f0a3b5 GP |
32 | // This is called when the view managed by the view controller is released. |
33 | // That is not always when the controller itself is released: it also can | |
34 | // happen when more memory is needed by the system or whenever the controller | |
35 | // just happens not to be visible. | |
fe8e721f | 36 | - (void) releaseSubviews; |
b5e7eebb | 37 | |
6840bff3 | 38 | @end |