Rename open and new methods.

This commit is contained in:
Corey Johnson
2011-12-22 14:58:06 -08:00
parent 66b066fbaf
commit ee0bf2e553
2 changed files with 8 additions and 8 deletions

View File

@@ -17,7 +17,7 @@
}
- (void)removeController:(AtomController *)controller {
[self.controllers removeObject:controller];
[self.controllers removeObject:controller];
}
// Events in the "app:*" namespace are sent to all controllers
@@ -40,11 +40,11 @@
}
#pragma mark Actions
- (IBAction)newController:(id)sender {
- (IBAction)openNewWindow:(id)sender {
[self open:nil];
}
- (IBAction)chooseFileToOpen:(id)sender {
- (IBAction)openFileInNewWindow:(id)sender {
NSOpenPanel *panel = [NSOpenPanel openPanel];
[panel setCanChooseDirectories:NO];
if ([panel runModal] == NSFileHandlingPanelOKButton) {

View File

@@ -143,19 +143,19 @@
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">newController:</string>
<string key="label">openNewWindow:</string>
<reference key="source" ref="1021"/>
<reference key="destination" ref="705341025"/>
</object>
<int key="connectionID">542</int>
<int key="connectionID">545</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">chooseFileToOpen:</string>
<string key="label">openFileInNewWindow:</string>
<reference key="source" ref="1021"/>
<reference key="destination" ref="722745758"/>
</object>
<int key="connectionID">544</int>
<int key="connectionID">546</int>
</object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
@@ -273,7 +273,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
<int key="maxID">544</int>
<int key="maxID">546</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">