Implemented parts of opening files from the menu
This commit is contained in:
parent
706db2684c
commit
2e9b1e2bd9
@ -1,23 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
|
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
|
||||||
<data>
|
<data>
|
||||||
<int key="IBDocument.SystemTarget">1070</int>
|
<int key="IBDocument.SystemTarget">1080</int>
|
||||||
<string key="IBDocument.SystemVersion">11D50b</string>
|
<string key="IBDocument.SystemVersion">12C60</string>
|
||||||
<string key="IBDocument.InterfaceBuilderVersion">2182</string>
|
<string key="IBDocument.InterfaceBuilderVersion">2843</string>
|
||||||
<string key="IBDocument.AppKitVersion">1138.32</string>
|
<string key="IBDocument.AppKitVersion">1187.34</string>
|
||||||
<string key="IBDocument.HIToolboxVersion">568.00</string>
|
<string key="IBDocument.HIToolboxVersion">625.00</string>
|
||||||
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
|
||||||
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
<string key="NS.object.0">2182</string>
|
<string key="NS.object.0">2843</string>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
|
<string>NSCustomObject</string>
|
||||||
<string>NSCustomView</string>
|
<string>NSCustomView</string>
|
||||||
<string>NSWindowTemplate</string>
|
|
||||||
<string>NSView</string>
|
|
||||||
<string>NSMenu</string>
|
<string>NSMenu</string>
|
||||||
<string>NSMenuItem</string>
|
<string>NSMenuItem</string>
|
||||||
<string>NSCustomObject</string>
|
<string>NSView</string>
|
||||||
|
<string>NSWindowTemplate</string>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
@ -209,6 +209,7 @@
|
|||||||
<int key="NSMnemonicLoc">2147483647</int>
|
<int key="NSMnemonicLoc">2147483647</int>
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
|
<int key="NSTag">1</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="1025936716">
|
<object class="NSMenuItem" id="1025936716">
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
<reference key="NSMenu" ref="720053764"/>
|
||||||
@ -247,15 +248,6 @@
|
|||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="776162233">
|
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
|
||||||
<string key="NSTitle">Close</string>
|
|
||||||
<string key="NSKeyEquiv">w</string>
|
|
||||||
<int key="NSKeyEquivModMask">1048576</int>
|
|
||||||
<int key="NSMnemonicLoc">2147483647</int>
|
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMenuItem" id="1023925487">
|
<object class="NSMenuItem" id="1023925487">
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
<reference key="NSMenu" ref="720053764"/>
|
||||||
<string key="NSTitle">Save</string>
|
<string key="NSTitle">Save</string>
|
||||||
@ -264,6 +256,7 @@
|
|||||||
<int key="NSMnemonicLoc">2147483647</int>
|
<int key="NSMnemonicLoc">2147483647</int>
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
|
<int key="NSTag">2</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="117038363">
|
<object class="NSMenuItem" id="117038363">
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
<reference key="NSMenu" ref="720053764"/>
|
||||||
@ -273,14 +266,17 @@
|
|||||||
<int key="NSMnemonicLoc">2147483647</int>
|
<int key="NSMnemonicLoc">2147483647</int>
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
|
<int key="NSTag">3</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="579971712">
|
<object class="NSMenuItem" id="49223823">
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
<reference key="NSMenu" ref="720053764"/>
|
||||||
<string key="NSTitle">Revert to Saved</string>
|
<string key="NSTitle">Remote Export...</string>
|
||||||
<string key="NSKeyEquiv"/>
|
<string key="NSKeyEquiv">e</string>
|
||||||
|
<int key="NSKeyEquivModMask">1048576</int>
|
||||||
<int key="NSMnemonicLoc">2147483647</int>
|
<int key="NSMnemonicLoc">2147483647</int>
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
|
<int key="NSTag">4</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="1010469920">
|
<object class="NSMenuItem" id="1010469920">
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
<reference key="NSMenu" ref="720053764"/>
|
||||||
@ -293,25 +289,6 @@
|
|||||||
<reference key="NSOnImage" ref="35465992"/>
|
<reference key="NSOnImage" ref="35465992"/>
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
<reference key="NSMixedImage" ref="502551668"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMenuItem" id="294629803">
|
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
|
||||||
<string key="NSTitle">Page Setup...</string>
|
|
||||||
<string key="NSKeyEquiv">P</string>
|
|
||||||
<int key="NSKeyEquivModMask">1179648</int>
|
|
||||||
<int key="NSMnemonicLoc">2147483647</int>
|
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
|
||||||
<string key="NSToolTip"/>
|
|
||||||
</object>
|
|
||||||
<object class="NSMenuItem" id="49223823">
|
|
||||||
<reference key="NSMenu" ref="720053764"/>
|
|
||||||
<string key="NSTitle">Print…</string>
|
|
||||||
<string key="NSKeyEquiv">p</string>
|
|
||||||
<int key="NSKeyEquivModMask">1048576</int>
|
|
||||||
<int key="NSMnemonicLoc">2147483647</int>
|
|
||||||
<reference key="NSOnImage" ref="35465992"/>
|
|
||||||
<reference key="NSMixedImage" ref="502551668"/>
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
@ -429,7 +406,7 @@
|
|||||||
<reference key="NSWindow"/>
|
<reference key="NSWindow"/>
|
||||||
<reference key="NSNextKeyView" ref="933730602"/>
|
<reference key="NSNextKeyView" ref="933730602"/>
|
||||||
</object>
|
</object>
|
||||||
<string key="NSScreenRect">{{0, 0}, {1440, 878}}</string>
|
<string key="NSScreenRect">{{0, 0}, {1920, 1178}}</string>
|
||||||
<string key="NSMinSize">{800, 622}</string>
|
<string key="NSMinSize">{800, 622}</string>
|
||||||
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
|
||||||
<bool key="NSWindowIsRestorable">YES</bool>
|
<bool key="NSWindowIsRestorable">YES</bool>
|
||||||
@ -486,22 +463,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBActionConnection" key="connection">
|
<object class="IBActionConnection" key="connection">
|
||||||
<string key="label">print:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="49223823"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">86</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">runPageLayout:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="294629803"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">87</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">clearRecentDocuments:</string>
|
<string key="label">clearRecentDocuments:</string>
|
||||||
<reference key="source" ref="1014"/>
|
<reference key="source" ref="1014"/>
|
||||||
<reference key="destination" ref="759406840"/>
|
<reference key="destination" ref="759406840"/>
|
||||||
@ -510,14 +471,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBActionConnection" key="connection">
|
<object class="IBActionConnection" key="connection">
|
||||||
<string key="label">performClose:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="776162233"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">193</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">performZoom:</string>
|
<string key="label">performZoom:</string>
|
||||||
<reference key="source" ref="1014"/>
|
<reference key="source" ref="1014"/>
|
||||||
<reference key="destination" ref="575023229"/>
|
<reference key="destination" ref="575023229"/>
|
||||||
@ -526,30 +479,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBActionConnection" key="connection">
|
<object class="IBActionConnection" key="connection">
|
||||||
<string key="label">saveDocument:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="1023925487"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">362</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">saveDocumentAs:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="117038363"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">363</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">revertDocumentToSaved:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="579971712"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">364</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">hide:</string>
|
<string key="label">hide:</string>
|
||||||
<reference key="source" ref="1014"/>
|
<reference key="source" ref="1014"/>
|
||||||
<reference key="destination" ref="755159360"/>
|
<reference key="destination" ref="755159360"/>
|
||||||
@ -574,22 +503,6 @@
|
|||||||
</object>
|
</object>
|
||||||
<object class="IBConnectionRecord">
|
<object class="IBConnectionRecord">
|
||||||
<object class="IBActionConnection" key="connection">
|
<object class="IBActionConnection" key="connection">
|
||||||
<string key="label">newDocument:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="705341025"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">373</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">openDocument:</string>
|
|
||||||
<reference key="source" ref="1014"/>
|
|
||||||
<reference key="destination" ref="722745758"/>
|
|
||||||
</object>
|
|
||||||
<int key="connectionID">374</int>
|
|
||||||
</object>
|
|
||||||
<object class="IBConnectionRecord">
|
|
||||||
<object class="IBActionConnection" key="connection">
|
|
||||||
<string key="label">showHelp:</string>
|
<string key="label">showHelp:</string>
|
||||||
<reference key="source" ref="1014"/>
|
<reference key="source" ref="1014"/>
|
||||||
<reference key="destination" ref="105068016"/>
|
<reference key="destination" ref="105068016"/>
|
||||||
@ -604,6 +517,46 @@
|
|||||||
</object>
|
</object>
|
||||||
<int key="connectionID">532</int>
|
<int key="connectionID">532</int>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBActionConnection" key="connection">
|
||||||
|
<string key="label">buttonClicked:</string>
|
||||||
|
<reference key="source" ref="976324537"/>
|
||||||
|
<reference key="destination" ref="722745758"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">543</int>
|
||||||
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBActionConnection" key="connection">
|
||||||
|
<string key="label">buttonClicked:</string>
|
||||||
|
<reference key="source" ref="976324537"/>
|
||||||
|
<reference key="destination" ref="1023925487"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">544</int>
|
||||||
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBActionConnection" key="connection">
|
||||||
|
<string key="label">buttonClicked:</string>
|
||||||
|
<reference key="source" ref="976324537"/>
|
||||||
|
<reference key="destination" ref="49223823"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">545</int>
|
||||||
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBActionConnection" key="connection">
|
||||||
|
<string key="label">buttonClicked:</string>
|
||||||
|
<reference key="source" ref="976324537"/>
|
||||||
|
<reference key="destination" ref="117038363"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">546</int>
|
||||||
|
</object>
|
||||||
|
<object class="IBConnectionRecord">
|
||||||
|
<object class="IBActionConnection" key="connection">
|
||||||
|
<string key="label">buttonClicked:</string>
|
||||||
|
<reference key="source" ref="976324537"/>
|
||||||
|
<reference key="destination" ref="705341025"/>
|
||||||
|
</object>
|
||||||
|
<int key="connectionID">547</int>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||||
<object class="NSArray" key="orderedObjects">
|
<object class="NSArray" key="orderedObjects">
|
||||||
@ -680,44 +633,21 @@
|
|||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||||
<reference ref="1023925487"/>
|
<reference ref="1023925487"/>
|
||||||
<reference ref="117038363"/>
|
<reference ref="117038363"/>
|
||||||
<reference ref="49223823"/>
|
|
||||||
<reference ref="722745758"/>
|
<reference ref="722745758"/>
|
||||||
<reference ref="705341025"/>
|
<reference ref="705341025"/>
|
||||||
<reference ref="1025936716"/>
|
<reference ref="1025936716"/>
|
||||||
<reference ref="294629803"/>
|
|
||||||
<reference ref="776162233"/>
|
|
||||||
<reference ref="425164168"/>
|
<reference ref="425164168"/>
|
||||||
<reference ref="579971712"/>
|
<reference ref="49223823"/>
|
||||||
<reference ref="1010469920"/>
|
<reference ref="1010469920"/>
|
||||||
</object>
|
</object>
|
||||||
<reference key="parent" ref="379814623"/>
|
<reference key="parent" ref="379814623"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBObjectRecord">
|
<object class="IBObjectRecord">
|
||||||
<int key="objectID">75</int>
|
|
||||||
<reference key="object" ref="1023925487"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">80</int>
|
|
||||||
<reference key="object" ref="117038363"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">78</int>
|
|
||||||
<reference key="object" ref="49223823"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">72</int>
|
<int key="objectID">72</int>
|
||||||
<reference key="object" ref="722745758"/>
|
<reference key="object" ref="722745758"/>
|
||||||
<reference key="parent" ref="720053764"/>
|
<reference key="parent" ref="720053764"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBObjectRecord">
|
<object class="IBObjectRecord">
|
||||||
<int key="objectID">82</int>
|
|
||||||
<reference key="object" ref="705341025"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">124</int>
|
<int key="objectID">124</int>
|
||||||
<reference key="object" ref="1025936716"/>
|
<reference key="object" ref="1025936716"/>
|
||||||
<object class="NSMutableArray" key="children">
|
<object class="NSMutableArray" key="children">
|
||||||
@ -727,26 +657,11 @@
|
|||||||
<reference key="parent" ref="720053764"/>
|
<reference key="parent" ref="720053764"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBObjectRecord">
|
<object class="IBObjectRecord">
|
||||||
<int key="objectID">77</int>
|
|
||||||
<reference key="object" ref="294629803"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">73</int>
|
|
||||||
<reference key="object" ref="776162233"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">79</int>
|
<int key="objectID">79</int>
|
||||||
<reference key="object" ref="425164168"/>
|
<reference key="object" ref="425164168"/>
|
||||||
<reference key="parent" ref="720053764"/>
|
<reference key="parent" ref="720053764"/>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBObjectRecord">
|
<object class="IBObjectRecord">
|
||||||
<int key="objectID">112</int>
|
|
||||||
<reference key="object" ref="579971712"/>
|
|
||||||
<reference key="parent" ref="720053764"/>
|
|
||||||
</object>
|
|
||||||
<object class="IBObjectRecord">
|
|
||||||
<int key="objectID">74</int>
|
<int key="objectID">74</int>
|
||||||
<reference key="object" ref="1010469920"/>
|
<reference key="object" ref="1010469920"/>
|
||||||
<reference key="parent" ref="720053764"/>
|
<reference key="parent" ref="720053764"/>
|
||||||
@ -936,6 +851,26 @@
|
|||||||
<reference key="object" ref="933730602"/>
|
<reference key="object" ref="933730602"/>
|
||||||
<reference key="parent" ref="439893737"/>
|
<reference key="parent" ref="439893737"/>
|
||||||
</object>
|
</object>
|
||||||
|
<object class="IBObjectRecord">
|
||||||
|
<int key="objectID">82</int>
|
||||||
|
<reference key="object" ref="705341025"/>
|
||||||
|
<reference key="parent" ref="720053764"/>
|
||||||
|
</object>
|
||||||
|
<object class="IBObjectRecord">
|
||||||
|
<int key="objectID">78</int>
|
||||||
|
<reference key="object" ref="49223823"/>
|
||||||
|
<reference key="parent" ref="720053764"/>
|
||||||
|
</object>
|
||||||
|
<object class="IBObjectRecord">
|
||||||
|
<int key="objectID">75</int>
|
||||||
|
<reference key="object" ref="1023925487"/>
|
||||||
|
<reference key="parent" ref="720053764"/>
|
||||||
|
</object>
|
||||||
|
<object class="IBObjectRecord">
|
||||||
|
<int key="objectID">80</int>
|
||||||
|
<reference key="object" ref="117038363"/>
|
||||||
|
<reference key="parent" ref="720053764"/>
|
||||||
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableDictionary" key="flattenedProperties">
|
<object class="NSMutableDictionary" key="flattenedProperties">
|
||||||
@ -945,7 +880,6 @@
|
|||||||
<string>-1.IBPluginDependency</string>
|
<string>-1.IBPluginDependency</string>
|
||||||
<string>-2.IBPluginDependency</string>
|
<string>-2.IBPluginDependency</string>
|
||||||
<string>-3.IBPluginDependency</string>
|
<string>-3.IBPluginDependency</string>
|
||||||
<string>112.IBPluginDependency</string>
|
|
||||||
<string>124.IBPluginDependency</string>
|
<string>124.IBPluginDependency</string>
|
||||||
<string>125.IBPluginDependency</string>
|
<string>125.IBPluginDependency</string>
|
||||||
<string>126.IBPluginDependency</string>
|
<string>126.IBPluginDependency</string>
|
||||||
@ -980,10 +914,8 @@
|
|||||||
<string>57.IBPluginDependency</string>
|
<string>57.IBPluginDependency</string>
|
||||||
<string>58.IBPluginDependency</string>
|
<string>58.IBPluginDependency</string>
|
||||||
<string>72.IBPluginDependency</string>
|
<string>72.IBPluginDependency</string>
|
||||||
<string>73.IBPluginDependency</string>
|
|
||||||
<string>74.IBPluginDependency</string>
|
<string>74.IBPluginDependency</string>
|
||||||
<string>75.IBPluginDependency</string>
|
<string>75.IBPluginDependency</string>
|
||||||
<string>77.IBPluginDependency</string>
|
|
||||||
<string>78.IBPluginDependency</string>
|
<string>78.IBPluginDependency</string>
|
||||||
<string>79.IBPluginDependency</string>
|
<string>79.IBPluginDependency</string>
|
||||||
<string>80.IBPluginDependency</string>
|
<string>80.IBPluginDependency</string>
|
||||||
@ -1017,7 +949,6 @@
|
|||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</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>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string>{{928, 459}, {480, 360}}</string>
|
<string>{{928, 459}, {480, 360}}</string>
|
||||||
<integer value="1"/>
|
<integer value="1"/>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
@ -1041,8 +972,6 @@
|
|||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</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>
|
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
<object class="NSMutableDictionary" key="unlocalizedProperties">
|
||||||
@ -1057,7 +986,7 @@
|
|||||||
<reference key="dict.values" ref="0"/>
|
<reference key="dict.values" ref="0"/>
|
||||||
</object>
|
</object>
|
||||||
<nil key="sourceID"/>
|
<nil key="sourceID"/>
|
||||||
<int key="maxID">542</int>
|
<int key="maxID">547</int>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||||
@ -1114,73 +1043,6 @@
|
|||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="IBPartialClassDescription">
|
<object class="IBPartialClassDescription">
|
||||||
<string key="className">NSDocument</string>
|
|
||||||
<object class="NSMutableDictionary" key="actions">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<object class="NSArray" key="dict.sortedKeys">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>printDocument:</string>
|
|
||||||
<string>revertDocumentToSaved:</string>
|
|
||||||
<string>runPageLayout:</string>
|
|
||||||
<string>saveDocument:</string>
|
|
||||||
<string>saveDocumentAs:</string>
|
|
||||||
<string>saveDocumentTo:</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSArray" key="dict.values">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
<string>id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="NSMutableDictionary" key="actionInfosByName">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<object class="NSArray" key="dict.sortedKeys">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<string>printDocument:</string>
|
|
||||||
<string>revertDocumentToSaved:</string>
|
|
||||||
<string>runPageLayout:</string>
|
|
||||||
<string>saveDocument:</string>
|
|
||||||
<string>saveDocumentAs:</string>
|
|
||||||
<string>saveDocumentTo:</string>
|
|
||||||
</object>
|
|
||||||
<object class="NSArray" key="dict.values">
|
|
||||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">printDocument:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">revertDocumentToSaved:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">runPageLayout:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">saveDocument:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">saveDocumentAs:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
<object class="IBActionInfo">
|
|
||||||
<string key="name">saveDocumentTo:</string>
|
|
||||||
<string key="candidateClassName">id</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
|
||||||
<string key="majorKey">IBProjectSource</string>
|
|
||||||
<string key="minorKey">./Classes/NSDocument.h</string>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="IBPartialClassDescription">
|
|
||||||
<string key="className">RocketView</string>
|
<string key="className">RocketView</string>
|
||||||
<string key="superclassName">NSView</string>
|
<string key="superclassName">NSView</string>
|
||||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||||
|
|||||||
4
ogl_editor/src/Dialog.h
Normal file
4
ogl_editor/src/Dialog.h
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
int Dialog_open(char* dest);
|
||||||
|
|
||||||
@ -3,6 +3,8 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "Dialog.h"
|
||||||
|
#include "Editor.h"
|
||||||
|
|
||||||
typedef struct RETrack
|
typedef struct RETrack
|
||||||
{
|
{
|
||||||
@ -243,6 +245,31 @@ void Editor_keyDown(int key)
|
|||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
static void onOpen()
|
||||||
|
{
|
||||||
|
char path[512];
|
||||||
|
|
||||||
|
if (!Dialog_open(path))
|
||||||
|
return;
|
||||||
|
|
||||||
|
printf("%s\n", path);
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
void Editor_menuEvent(int menuItem)
|
||||||
|
{
|
||||||
|
switch (menuItem)
|
||||||
|
{
|
||||||
|
//case EDITOR_MENU_NEW : onNew(); break;
|
||||||
|
case EDITOR_MENU_OPEN : onOpen(); break;
|
||||||
|
//case EDITOR_MENU_SAVE : onSave(); break;
|
||||||
|
//case EDITOR_MENU_SAVE_AS : onSaveAs(); break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void Editor_destroy()
|
void Editor_destroy()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -5,4 +5,13 @@ void Editor_destroy();
|
|||||||
void Editor_init();
|
void Editor_init();
|
||||||
void Editor_update();
|
void Editor_update();
|
||||||
void Editor_keyDown(int keyCode);
|
void Editor_keyDown(int keyCode);
|
||||||
|
void Editor_menuEvent(int menuItem);
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
EDITOR_MENU_NEW,
|
||||||
|
EDITOR_MENU_OPEN,
|
||||||
|
EDITOR_MENU_SAVE,
|
||||||
|
EDITOR_MENU_SAVE_AS,
|
||||||
|
};
|
||||||
|
|
||||||
|
|||||||
30
ogl_editor/src/macosx/FileDialog.m
Normal file
30
ogl_editor/src/macosx/FileDialog.m
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
#include "../Dialog.h"
|
||||||
|
#import <Cocoa/Cocoa.h>
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
int Dialog_open(char* dest)
|
||||||
|
{
|
||||||
|
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
NSOpenPanel* open = [NSOpenPanel openPanel];
|
||||||
|
[open setAllowsMultipleSelection:NO];
|
||||||
|
|
||||||
|
int result = [open runModal];
|
||||||
|
|
||||||
|
if (result != NSOKButton)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
// Grab the first file
|
||||||
|
|
||||||
|
NSArray* selectedFiles = [open URLs];
|
||||||
|
NSURL* url = [selectedFiles objectAtIndex:0];
|
||||||
|
const char* temp = [[url path] UTF8String];
|
||||||
|
|
||||||
|
strcpy(dest, temp);
|
||||||
|
|
||||||
|
[pool drain];
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1,19 +1,23 @@
|
|||||||
|
|
||||||
#import "delegate.h"
|
#import "delegate.h"
|
||||||
|
#include "../Editor.h"
|
||||||
|
|
||||||
@implementation MinimalAppAppDelegate
|
@implementation MinimalAppAppDelegate
|
||||||
|
|
||||||
@synthesize window;
|
@synthesize window;
|
||||||
@synthesize button;
|
@synthesize button;
|
||||||
|
|
||||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
// Insert code here to initialize your application
|
|
||||||
|
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||||
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
- (IBAction) buttonClicked:(id)sender {
|
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
NSRunAlertPanel(@"Hello, world",
|
|
||||||
@"Hello",
|
- (IBAction) buttonClicked:(id)sender
|
||||||
@"OK", nil, nil);
|
{
|
||||||
|
Editor_menuEvent((int)((NSButton*)sender).tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user