mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 21:17:03 +00:00
54 lines
1.1 KiB
Objective-C
54 lines
1.1 KiB
Objective-C
//
|
|
// AppController.h
|
|
// NativeHost
|
|
//
|
|
// Created by Francisco Tolmasky on 6/4/09.
|
|
// Copyright 2009 280 North, Inc. All rights reserved.
|
|
//
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
extern int SERVER_PORT;
|
|
extern NSString *SERVER_PASSWORD;
|
|
extern NSString *SERVER_USER;
|
|
|
|
@class Server;
|
|
@class WebScriptObject;
|
|
|
|
@interface AppController : NSObject
|
|
{
|
|
NSWindow * webViewWindow;
|
|
WebView * webView;
|
|
|
|
NSMutableArray * openingFilenames;
|
|
NSMutableArray * openingURLStrings;
|
|
|
|
Server * server;
|
|
NSFileHandle * stdinFileHandle;
|
|
|
|
NSMutableAttributedString * loggedOutput;
|
|
|
|
NSURL * baseURL;
|
|
}
|
|
|
|
- (void)configureLocalStorage;
|
|
- (NSURL *)baseURL;
|
|
|
|
- (void)startServer;
|
|
- (void)startCappuccinoApplication;
|
|
|
|
- (NSArray *)openingURLStrings;
|
|
|
|
- (NSView *)keyView;
|
|
- (WebView *)webView;
|
|
- (WebScriptObject *)windowScriptObject;
|
|
|
|
@end
|
|
|
|
@interface AppController (MainMenu)
|
|
|
|
- (void)setMainMenuObject:(WebScriptObject *)aMenuObject;
|
|
|
|
@end
|
|
|
|
void NHLog(NSString *type, NSString *message); |