Permalink
Browse files

add the ability to open a document and open a new

window by right-clicking on the dock icon.
  • Loading branch information...
1 parent 02750c9 commit 3b09670ba5aa157107274e7a2235cb9adc880152 @alexzautke alexzautke committed Feb 23, 2011
Showing with 79 additions and 17 deletions.
  1. +79 −17 resources/MainMenu.xib
@@ -12,7 +12,8 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="296"/>
+ <integer value="81"/>
+ <integer value="620"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1043,6 +1044,28 @@
</object>
<string key="NSName">_NSMainMenu</string>
</object>
+ <object class="NSMenu" id="47747612">
+ <string key="NSTitle"/>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="949594866">
+ <reference key="NSMenu" ref="47747612"/>
+ <string key="NSTitle">New window</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="35465992"/>
+ <reference key="NSMixedImage" ref="502551668"/>
+ </object>
+ <object class="NSMenuItem" id="939555172">
+ <reference key="NSMenu" ref="47747612"/>
+ <string key="NSTitle">Open file…</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="35465992"/>
+ <reference key="NSMixedImage" ref="502551668"/>
+ </object>
+ </object>
+ </object>
<object class="NSCustomObject" id="976324537">
<string key="NSClassName">KAppDelegate</string>
</object>
@@ -1597,6 +1620,30 @@
</object>
<int key="connectionID">619</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">newWindow:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="949594866"/>
+ </object>
+ <int key="connectionID">624</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">openDocument:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="939555172"/>
+ </object>
+ <int key="connectionID">625</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBOutletConnection" key="connection">
+ <string key="label">dockMenu</string>
+ <reference key="source" ref="1021"/>
+ <reference key="destination" ref="47747612"/>
+ </object>
+ <int key="connectionID">626</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -2404,6 +2451,27 @@
<reference key="object" ref="904850443"/>
<reference key="parent" ref="466310130"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">620</int>
+ <reference key="object" ref="47747612"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="949594866"/>
+ <reference ref="939555172"/>
+ </object>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">Dock Menu</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">621</int>
+ <reference key="object" ref="949594866"/>
+ <reference key="parent" ref="47747612"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">622</int>
+ <reference key="object" ref="939555172"/>
+ <reference key="parent" ref="47747612"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
@@ -2607,6 +2675,10 @@
<string>611.IBPluginDependency</string>
<string>613.IBPluginDependency</string>
<string>616.IBPluginDependency</string>
+ <string>620.IBEditorWindowLastContentRect</string>
+ <string>620.IBPluginDependency</string>
+ <string>621.IBPluginDependency</string>
+ <string>622.IBPluginDependency</string>
<string>72.IBPluginDependency</string>
<string>72.ImportedFromIB2</string>
<string>73.IBPluginDependency</string>
@@ -2833,6 +2905,10 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>{{1065, 785}, {137, 43}}</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -2849,7 +2925,7 @@
<integer value="1"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
- <string>{{203, 543}, {200, 293}}</string>
+ <string>{{401, 543}, {200, 293}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
<string>{{145, 474}, {199, 203}}</string>
@@ -2877,7 +2953,7 @@
</object>
</object>
<nil key="sourceID"/>
- <int key="maxID">619</int>
+ <int key="maxID">630</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -3347,20 +3423,6 @@
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">FScript.framework/Headers/FSNSNumber.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
- <string key="minorKey">FScript.framework/Headers/FSNSObject.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">NSObject</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">QuartzCore.framework/Headers/CAAnimation.h</string>
</object>
</object>

0 comments on commit 3b09670

Please sign in to comment.