Refactor JSBridge to simplify adding new methods. Add log(message) and a stub for fileExistsInMod(file,mod).

This commit is contained in:
Paul Chote
2010-11-17 12:31:52 +13:00
parent 40235db52e
commit f42f39f9c9
5 changed files with 56 additions and 11 deletions

View File

@@ -12,7 +12,11 @@
@class Controller;
@interface JSBridge : NSObject {
Controller *controller;
NSDictionary *methods;
}
@property(readonly) NSDictionary *methods;
+ (JSBridge *)sharedInstance;
- (void)setController:(Controller *)aController;
-(id)initWithController:(Controller *)aController;
@end