| 26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
| 27 */ |
27 */ |
| 28 |
28 |
| 29 #import "toolkit.h" |
29 #import "toolkit.h" |
| 30 |
30 |
| 31 @interface WindowManager : NSObject<NSWindowDelegate> |
31 @interface WindowManager : NSObject |
| 32 |
32 |
| 33 @property NSMutableArray<NSWindow*> *windows; |
33 @property NSMutableArray<NSWindowController*> *windows; |
| 34 |
34 |
| 35 + (WindowManager*) sharedWindowManager; |
35 + (WindowManager*) sharedWindowManager; |
| 36 |
36 |
| 37 - (WindowManager*)init; |
37 - (WindowManager*)init; |
| 38 |
38 |
| 39 - (void)addWindow:(NSWindow*)win; |
39 - (void)addWindow:(NSWindowController*)win; |
| |
40 |
| |
41 - (void)closeWindow:(NSWindow*)win; |
| 40 |
42 |
| 41 @end |
43 @end |