// // WindowController.h // MG // // Created by Tim Debo on 5/19/14. // // #import #import #import "MacGap.h" @class WebViewDelegate; @interface WindowController : NSWindowController { IBOutlet WebView* webView; IBOutlet NSWindow* window; WebViewDelegate* webViewDelegate; JSContext* jsContext; } @property (nonatomic, readonly, strong) NSMutableDictionary* pluginObjects; @property (nonatomic, readonly, strong) NSDictionary* pluginsMap; @property (nonatomic, readonly, strong) NSMutableDictionary* settings; @property (strong) JSContext* jsContext; @property (retain) WebView* webView; @property (strong) IBOutlet NSMenu *mainMenu; @property (retain) WebViewDelegate* webViewDelegate; @property (retain) NSURL* url; @property (nonatomic, readonly) NSString* userAgent; - (id) initWithURL:(NSString *) url; - (id) initWithRequest: (NSURLRequest *)request; - (id)getCommandInstance:(NSString*)pluginName; //- (void)registerPlugin:(Plugin*)plugin withClassName:(NSString*)className; //- (void)registerPlugin:(Plugin*)plugin withPluginName:(NSString*)pluginName; - (void) setWindowParams; @end