mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
Corey, Corey, Corey...
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
@synthesize controllers;
|
||||
|
||||
- (AtomController *)createController:(NSString *)path {
|
||||
AtomController *controller = [[AtomController alloc] initWithPath:path];
|
||||
AtomController *controller = [[AtomController alloc] initWithURL:path];
|
||||
[controllers addObject:controller];
|
||||
|
||||
return controller;
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
}
|
||||
|
||||
@property (retain) WebView *webView;
|
||||
@property (retain, readonly) NSString *path;
|
||||
@property (retain, readonly) NSString *url;
|
||||
@property (retain) JSCocoa *jscocoa;
|
||||
|
||||
- (AtomController *)initWithPath:(NSString *)aPath;
|
||||
- (AtomController *)initWithURL:(NSString *)url;
|
||||
|
||||
@end
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
@implementation AtomController
|
||||
|
||||
@synthesize webView, path, jscocoa;
|
||||
@synthesize webView, url, jscocoa;
|
||||
|
||||
- (void)dealloc {
|
||||
[jscocoa unlinkAllReferences];
|
||||
@@ -15,14 +15,14 @@
|
||||
[jscocoa release]; jscocoa = nil;
|
||||
|
||||
[webView release];
|
||||
[path release];
|
||||
[url release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (id)initWithPath:(NSString *)_path {
|
||||
- (id)initWithURL:(NSString *)_url {
|
||||
self = [super initWithWindowNibName:@"AtomWindow"];
|
||||
path = [[_path stringByStandardizingPath] retain];
|
||||
url = [[_url stringByStandardizingPath] retain];
|
||||
|
||||
[self.window makeKeyWindow];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user