diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 14:46:42 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-06-08 14:46:42 -0700 |
| commit | cafa41ba4d53b2b945d56cd1a9b1bb92b5610b53 (patch) | |
| tree | c5293dd426c821ef02c122115630eaf1eccc88b6 /ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m | |
| parent | 196d96cfa7e24891bd1954e6ed734567e3944279 (diff) | |
| download | infinitytier-cafa41ba4d53b2b945d56cd1a9b1bb92b5610b53.tar.gz infinitytier-cafa41ba4d53b2b945d56cd1a9b1bb92b5610b53.zip | |
RedHat stuff and cleanup.
Diffstat (limited to 'ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m')
| -rw-r--r-- | ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m b/ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m deleted file mode 100644 index 2765a2e3..00000000 --- a/ext/mac-ui-macgap1-wrapper/src/MacGap/WindowController.m +++ /dev/null @@ -1,54 +0,0 @@ -#import "WindowController.h" - - -@interface WindowController() { - -} - --(void) notificationCenter; - -@end - -@implementation WindowController - -@synthesize contentView, url; - -- (id) initWithURL:(NSString *) relativeURL{ - self = [super initWithWindowNibName:@"Window"]; - self.url = [NSURL URLWithString:relativeURL relativeToURL:[[NSBundle mainBundle] resourceURL]]; - - [self.window setFrameAutosaveName:@"MacGapWindow"]; - [self notificationCenter]; - - return self; -} - --(id) initWithRequest: (NSURLRequest *)request{ - self = [super initWithWindowNibName:@"Window"]; - [self notificationCenter]; - [[self.contentView.webView mainFrame] loadRequest:request]; - - return self; -} - --(void) notificationCenter{ - [[NSNotificationCenter defaultCenter] addObserver:self.contentView - selector:@selector(windowResized:) - name:NSWindowDidResizeNotification - object:[self window]]; -} - -- (void)windowDidLoad -{ - [super windowDidLoad]; - - if (self.url != nil) { - [self.contentView.webView setMainFrameURL:[self.url absoluteString]]; - } - - - // Implement this method to handle any initialization after your - // window controller's window has been loaded from its nib file. -} - -@end |
