mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Rename open and new methods.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user