Closing the controller removes it from NSApp

This commit is contained in:
Corey Johnson 2011-11-29 16:56:58 -05:00
parent 40472537cc
commit f31cb275ca

View File

@ -49,6 +49,10 @@
[[webView mainFrame] loadRequest:request];
}
- (void)close {
[(AtomApp *)NSApp removeController:self];
}
- (NSString *)projectPath {
return PROJECT_DIR;
}
@ -58,10 +62,4 @@
return defaultMenuItems;
}
// WindowDelegate
- (BOOL)windowShouldClose:(id)sender {
[(AtomApp *)NSApp removeController:self];
return YES;
}
@end