Browse files

Added toolbar

You can now edit the text with things like bold and italics using the toolbar. It inserts the corresponding markup into the source text. It does not do any checking for context to avoid doubling up or crossing over.
  • Loading branch information...
1 parent cb0e3d2 commit 3310439a20e7796d4917fb82005b9397fa9a938f @davbeck davbeck committed with Jan Weiß Sep 24, 2011
View
BIN English.lproj/Images/bold.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN English.lproj/Images/italic.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN English.lproj/Images/nlist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN English.lproj/Images/quote.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN English.lproj/Images/ulist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN English.lproj/Images/underline.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
284 English.lproj/MainMenu.xib
@@ -722,6 +722,39 @@
</object>
</object>
</object>
+ <object class="NSMenuItem" id="81456092">
+ <reference key="NSMenu" ref="649796088"/>
+ <string key="NSTitle">Format</string>
+ <string key="NSKeyEquiv"/>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ <string key="NSAction">submenuAction:</string>
+ <object class="NSMenu" key="NSSubmenu" id="374611422">
+ <string key="NSTitle">Format</string>
+ <object class="NSMutableArray" key="NSMenuItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSMenuItem" id="144703386">
+ <reference key="NSMenu" ref="374611422"/>
+ <string key="NSTitle">Bold</string>
+ <string key="NSKeyEquiv">b</string>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ <object class="NSMenuItem" id="535290006">
+ <reference key="NSMenu" ref="374611422"/>
+ <string key="NSTitle">Italic</string>
+ <string key="NSKeyEquiv">i</string>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="1033313550"/>
+ <reference key="NSMixedImage" ref="310636482"/>
+ </object>
+ </object>
+ </object>
+ </object>
<object class="NSMenuItem" id="713487014">
<reference key="NSMenu" ref="649796088"/>
<string key="NSTitle">Window</string>
@@ -1135,22 +1168,22 @@
<object class="NSCustomObject" id="682236088">
<string key="NSClassName">PreferencesController</string>
</object>
- <object class="NSCustomObject" id="935028063">
+ <object class="NSCustomObject" id="643165181">
<string key="NSClassName">MLAppDelegate</string>
</object>
- <object class="NSMenuItem" id="391324207">
+ <object class="NSMenuItem" id="107959551">
<string key="NSTitle">View</string>
<string key="NSKeyEquiv"/>
<int key="NSMnemonicLoc">2147483647</int>
<reference key="NSOnImage" ref="1033313550"/>
<reference key="NSMixedImage" ref="310636482"/>
<string key="NSAction">submenuAction:</string>
- <object class="NSMenu" key="NSSubmenu" id="831548462">
+ <object class="NSMenu" key="NSSubmenu" id="889830452">
<string key="NSTitle">View</string>
<object class="NSMutableArray" key="NSMenuItems">
<bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSMenuItem" id="411283032">
- <reference key="NSMenu" ref="831548462"/>
+ <object class="NSMenuItem" id="1023261756">
+ <reference key="NSMenu" ref="889830452"/>
<string key="NSTitle">Enter Full Screen</string>
<string key="NSKeyEquiv">f</string>
<int key="NSKeyEquivModMask">1310720</int>
@@ -1673,26 +1706,42 @@
<object class="IBActionConnection" key="connection">
<string key="label">toggleFullScreen:</string>
<reference key="source" ref="1014"/>
- <reference key="destination" ref="411283032"/>
+ <reference key="destination" ref="1023261756"/>
</object>
<int key="connectionID">592</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">viewMenu</string>
- <reference key="source" ref="935028063"/>
- <reference key="destination" ref="391324207"/>
+ <reference key="source" ref="643165181"/>
+ <reference key="destination" ref="107959551"/>
</object>
<int key="connectionID">594</int>
</object>
<object class="IBConnectionRecord">
<object class="IBOutletConnection" key="connection">
<string key="label">delegate</string>
<reference key="source" ref="1050"/>
- <reference key="destination" ref="935028063"/>
+ <reference key="destination" ref="643165181"/>
</object>
<int key="connectionID">595</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">bold:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="144703386"/>
+ </object>
+ <int key="connectionID">601</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">italic:</string>
+ <reference key="source" ref="1014"/>
+ <reference key="destination" ref="535290006"/>
+ </object>
+ <int key="connectionID">602</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
@@ -1731,6 +1780,7 @@
<reference ref="952259628"/>
<reference ref="379814623"/>
<reference ref="1050483726"/>
+ <reference ref="81456092"/>
</object>
<reference key="parent" ref="0"/>
</object>
@@ -2483,31 +2533,60 @@
</object>
<object class="IBObjectRecord">
<int key="objectID">593</int>
- <reference key="object" ref="935028063"/>
+ <reference key="object" ref="643165181"/>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">587</int>
- <reference key="object" ref="391324207"/>
+ <reference key="object" ref="107959551"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="831548462"/>
+ <reference ref="889830452"/>
</object>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">588</int>
- <reference key="object" ref="831548462"/>
+ <reference key="object" ref="889830452"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
- <reference ref="411283032"/>
+ <reference ref="1023261756"/>
</object>
- <reference key="parent" ref="391324207"/>
+ <reference key="parent" ref="107959551"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">589</int>
- <reference key="object" ref="411283032"/>
- <reference key="parent" ref="831548462"/>
+ <reference key="object" ref="1023261756"/>
+ <reference key="parent" ref="889830452"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">596</int>
+ <reference key="object" ref="81456092"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="374611422"/>
+ </object>
+ <reference key="parent" ref="649796088"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">597</int>
+ <reference key="object" ref="374611422"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="144703386"/>
+ <reference ref="535290006"/>
+ </object>
+ <reference key="parent" ref="81456092"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">598</int>
+ <reference key="object" ref="144703386"/>
+ <reference key="parent" ref="374611422"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">599</int>
+ <reference key="object" ref="535290006"/>
+ <reference key="parent" ref="374611422"/>
</object>
</object>
</object>
@@ -2621,6 +2700,10 @@
<string>588.IBPluginDependency</string>
<string>589.IBPluginDependency</string>
<string>593.IBPluginDependency</string>
+ <string>596.IBPluginDependency</string>
+ <string>597.IBPluginDependency</string>
+ <string>598.IBPluginDependency</string>
+ <string>599.IBPluginDependency</string>
<string>72.IBPluginDependency</string>
<string>73.IBPluginDependency</string>
<string>74.IBPluginDependency</string>
@@ -2754,6 +2837,10 @@
<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 class="NSMutableDictionary" key="unlocalizedProperties">
@@ -2768,12 +2855,20 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">595</int>
+ <int key="maxID">602</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBPartialClassDescription">
+ <string key="className">EditPaneTextView</string>
+ <string key="superclassName">NSTextView</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/EditPaneTextView.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
<string key="className">FirstResponder</string>
<object class="NSMutableDictionary" key="actions">
<string key="NS.key.0">copyGeneratedHTMLAction:</string>
@@ -2814,14 +2909,91 @@
<string key="className">MyDocument</string>
<string key="superclassName">NSDocument</string>
<object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">copyGeneratedHTMLAction:</string>
- <string key="NS.object.0">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>blockQuote:</string>
+ <string>bold:</string>
+ <string>boldItalic:</string>
+ <string>copyGeneratedHTMLAction:</string>
+ <string>header1:</string>
+ <string>header2:</string>
+ <string>header3:</string>
+ <string>italic:</string>
+ <string>numberedList:</string>
+ <string>unorderedList:</string>
+ </object>
+ <object class="NSMutableArray" 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>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ <string>id</string>
+ </object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">copyGeneratedHTMLAction:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">copyGeneratedHTMLAction:</string>
- <string key="candidateClassName">id</string>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>blockQuote:</string>
+ <string>bold:</string>
+ <string>boldItalic:</string>
+ <string>copyGeneratedHTMLAction:</string>
+ <string>header1:</string>
+ <string>header2:</string>
+ <string>header3:</string>
+ <string>italic:</string>
+ <string>numberedList:</string>
+ <string>unorderedList:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">blockQuote:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">bold:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">boldItalic:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">copyGeneratedHTMLAction:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">header1:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">header2:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">header3:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">italic:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">numberedList:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">unorderedList:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="outlets">
@@ -2931,6 +3103,70 @@
<object class="IBPartialClassDescription">
<string key="className">PreferencesController</string>
<string key="superclassName">NSObject</string>
+ <object class="NSMutableDictionary" key="actions">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>resetEditPanePreferences:</string>
+ <string>showFonts:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <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>resetEditPanePreferences:</string>
+ <string>showFonts:</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBActionInfo">
+ <string key="name">resetEditPanePreferences:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ <object class="IBActionInfo">
+ <string key="name">showFonts:</string>
+ <string key="candidateClassName">id</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="outlets">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>fontPreviewField</string>
+ <string>prefWindow</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSTextField</string>
+ <string>NSWindow</string>
+ </object>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>fontPreviewField</string>
+ <string>prefWindow</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="IBToOneOutletInfo">
+ <string key="name">fontPreviewField</string>
+ <string key="candidateClassName">NSTextField</string>
+ </object>
+ <object class="IBToOneOutletInfo">
+ <string key="name">prefWindow</string>
+ <string key="candidateClassName">NSWindow</string>
+ </object>
+ </object>
+ </object>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">./Classes/PreferencesController.h</string>
View
1,038 English.lproj/MyDocument.xib
@@ -2,10 +2,10 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1060</int>
- <string key="IBDocument.SystemVersion">10J4138</string>
- <string key="IBDocument.InterfaceBuilderVersion">1306</string>
- <string key="IBDocument.AppKitVersion">1038.35</string>
- <string key="IBDocument.HIToolboxVersion">461.00</string>
+ <string key="IBDocument.SystemVersion">11B26</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1617</string>
+ <string key="IBDocument.AppKitVersion">1138</string>
+ <string key="IBDocument.HIToolboxVersion">566.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
@@ -15,29 +15,40 @@
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
- <string>1306</string>
- <string>30</string>
+ <string>1617</string>
+ <string>518</string>
</object>
</object>
<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
- <string>NSView</string>
+ <string>NSSegmentedControl</string>
+ <string>NSToolbar</string>
<string>NSSplitView</string>
+ <string>NSScroller</string>
+ <string>NSButton</string>
<string>NSScrollView</string>
- <string>NSWindowTemplate</string>
+ <string>NSButtonCell</string>
+ <string>NSToolbarFlexibleSpaceItem</string>
+ <string>NSToolbarSpaceItem</string>
<string>WebView</string>
- <string>NSTextView</string>
- <string>NSScroller</string>
<string>NSCustomObject</string>
+ <string>NSTextView</string>
+ <string>NSView</string>
+ <string>NSWindowTemplate</string>
+ <string>NSSegmentedCell</string>
+ <string>NSToolbarItem</string>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.WebKitIBPlugin</string>
</object>
<object class="NSMutableDictionary" key="IBDocument.Metadata">
- <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
- <integer value="1" key="NS.object.0"/>
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys" id="0">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ </object>
+ <reference key="dict.values" ref="0"/>
</object>
<object class="NSMutableArray" key="IBDocument.RootObjects" id="580458321">
<bool key="EncodedWithXMLCoder">YES</bool>
@@ -54,7 +65,438 @@
<int key="NSWTFlags">1886912512</int>
<string key="NSWindowTitle">Window</string>
<string key="NSWindowClass">NSWindow</string>
- <string key="NSViewClass">View</string>
+ <object class="NSToolbar" key="NSViewClass" id="855952761">
+ <object class="NSMutableString" key="NSToolbarIdentifier">
+ <characters key="NS.bytes">BA2DFF7D-3624-419D-BBBC-F8BC409A0D68</characters>
+ </object>
+ <nil key="NSToolbarDelegate"/>
+ <bool key="NSToolbarPrefersToBeShown">YES</bool>
+ <bool key="NSToolbarShowsBaselineSeparator">YES</bool>
+ <bool key="NSToolbarAllowsUserCustomization">YES</bool>
+ <bool key="NSToolbarAutosavesConfiguration">YES</bool>
+ <int key="NSToolbarDisplayMode">2</int>
+ <int key="NSToolbarSizeMode">1</int>
+ <object class="NSMutableDictionary" key="NSToolbarIBIdentifiedItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>13B7EF99-D81B-4536-B173-F8D7BFF3FF64</string>
+ <string>13F92DD8-B2DF-41F2-8F1A-9A0AC987F639</string>
+ <string>1BD5CD09-362E-4EAF-BED0-BC8AD3283AB4</string>
+ <string>202619C3-7340-41BE-8FF0-4FAEF94A4277</string>
+ <string>5759FDCD-569B-4188-BF1B-510F313B425A</string>
+ <string>7294EEE5-5683-474F-BDF0-DDE6D9CB9160</string>
+ <string>E48952C9-A345-48AE-8843-1944645ECB98</string>
+ <string>NSToolbarFlexibleSpaceItem</string>
+ <string>NSToolbarSpaceItem</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSToolbarItem" id="465090285">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">13B7EF99-D81B-4536-B173-F8D7BFF3FF64</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Ordered List</string>
+ <string key="NSToolbarItemPaletteLabel">Ordered List</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="967577179">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{24, 14}, {25, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="850232164">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents"/>
+ <object class="NSFont" key="NSSupport" id="191101046">
+ <string key="NSName">LucidaGrande</string>
+ <double key="NSSize">13</double>
+ <int key="NSfFlags">1044</int>
+ </object>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="967577179"/>
+ <int key="NSButtonFlags">-2033958657</int>
+ <int key="NSButtonFlags2">163</int>
+ <object class="NSCustomResource" key="NSNormalImage" id="1069798910">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">nlist</string>
+ </object>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <reference key="NSToolbarItemImage" ref="1069798910"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{25, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="160200354">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">13F92DD8-B2DF-41F2-8F1A-9A0AC987F639</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Header 1</string>
+ <string key="NSToolbarItemPaletteLabel">Header 1</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="447532586">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{16, 14}, {25, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="229741525">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">h1</string>
+ <object class="NSFont" key="NSSupport" id="505126444">
+ <string key="NSName">Times-Bold</string>
+ <double key="NSSize">12</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="447532586"/>
+ <int key="NSButtonFlags">-2038152961</int>
+ <int key="NSButtonFlags2">163</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{25, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="56201621">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">1BD5CD09-362E-4EAF-BED0-BC8AD3283AB4</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Bold, Italic, Underline</string>
+ <string key="NSToolbarItemPaletteLabel">Bold, Italic, Underline</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSSegmentedControl" key="NSToolbarItemView" id="503538619">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{35, 14}, {51, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:1766</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSSegmentedCell" key="NSCell" id="680482294">
+ <int key="NSCellFlags">67239424</int>
+ <int key="NSCellFlags2">0</int>
+ <reference key="NSSupport" ref="191101046"/>
+ <string key="NSCellIdentifier">_NS:1766</string>
+ <reference key="NSControlView" ref="503538619"/>
+ <object class="NSMutableArray" key="NSSegmentImages">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSSegmentItem">
+ <double key="NSSegmentItemWidth">24</double>
+ <object class="NSCustomResource" key="NSSegmentItemImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">bold</string>
+ </object>
+ <int key="NSSegmentItemImageScaling">0</int>
+ </object>
+ <object class="NSSegmentItem">
+ <double key="NSSegmentItemWidth">24</double>
+ <object class="NSCustomResource" key="NSSegmentItemImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">italic</string>
+ </object>
+ <int key="NSSegmentItemTag">1</int>
+ <int key="NSSegmentItemImageScaling">0</int>
+ </object>
+ </object>
+ <int key="NSSelectedSegment">1</int>
+ <int key="NSTrackingMode">2</int>
+ <int key="NSSegmentStyle">4</int>
+ </object>
+ </object>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{51, 24}</string>
+ <string key="NSToolbarItemMaxSize">{76, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="697314889">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">202619C3-7340-41BE-8FF0-4FAEF94A4277</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Header 3</string>
+ <string key="NSToolbarItemPaletteLabel">Header 3</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="141841420">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{15, 14}, {27, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="847813247">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">h3</string>
+ <reference key="NSSupport" ref="505126444"/>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="141841420"/>
+ <int key="NSButtonFlags">-2038152961</int>
+ <int key="NSButtonFlags2">163</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{27, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="755366444">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">5759FDCD-569B-4188-BF1B-510F313B425A</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Block Quote</string>
+ <string key="NSToolbarItemPaletteLabel">Block Quote</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="832384455">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{24, 14}, {25, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="93537446">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="191101046"/>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="832384455"/>
+ <int key="NSButtonFlags">-2033958657</int>
+ <int key="NSButtonFlags2">163</int>
+ <object class="NSCustomResource" key="NSNormalImage" id="819216049">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">quote</string>
+ </object>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <reference key="NSToolbarItemImage" ref="819216049"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{25, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="506851974">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">7294EEE5-5683-474F-BDF0-DDE6D9CB9160</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Unordered List</string>
+ <string key="NSToolbarItemPaletteLabel">Unordered List</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="427970335">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{31, 14}, {25, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="733277146">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents"/>
+ <reference key="NSSupport" ref="191101046"/>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="427970335"/>
+ <int key="NSButtonFlags">-2033958657</int>
+ <int key="NSButtonFlags2">163</int>
+ <object class="NSCustomResource" key="NSNormalImage" id="527453583">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">ulist</string>
+ </object>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <reference key="NSToolbarItemImage" ref="527453583"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{25, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarItem" id="733612615">
+ <object class="NSMutableString" key="NSToolbarItemIdentifier">
+ <characters key="NS.bytes">E48952C9-A345-48AE-8843-1944645ECB98</characters>
+ </object>
+ <string key="NSToolbarItemLabel">Header 2</string>
+ <string key="NSToolbarItemPaletteLabel">Header 2</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <object class="NSButton" key="NSToolbarItemView" id="309727054">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{15, 14}, {27, 25}}</string>
+ <reference key="NSSuperview"/>
+ <string key="NSReuseIdentifierKey">_NS:3196</string>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="284637492">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">134217728</int>
+ <string key="NSContents">h2</string>
+ <reference key="NSSupport" ref="505126444"/>
+ <string key="NSCellIdentifier">_NS:3196</string>
+ <reference key="NSControlView" ref="309727054"/>
+ <int key="NSButtonFlags">-2038152961</int>
+ <int key="NSButtonFlags2">163</int>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">400</int>
+ <int key="NSPeriodicInterval">75</int>
+ </object>
+ </object>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{25, 25}</string>
+ <string key="NSToolbarItemMaxSize">{27, 25}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">0</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ </object>
+ <object class="NSToolbarFlexibleSpaceItem" id="589767847">
+ <string key="NSToolbarItemIdentifier">NSToolbarFlexibleSpaceItem</string>
+ <string key="NSToolbarItemLabel"/>
+ <string key="NSToolbarItemPaletteLabel">Flexible Space</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <nil key="NSToolbarItemView"/>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{1, 5}</string>
+ <string key="NSToolbarItemMaxSize">{20000, 32}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">-1</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ <object class="NSMenuItem" key="NSToolbarItemMenuFormRepresentation">
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <object class="NSCustomResource" key="NSOnImage" id="57375015">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuCheckmark</string>
+ </object>
+ <object class="NSCustomResource" key="NSMixedImage" id="179613922">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">NSMenuMixedState</string>
+ </object>
+ </object>
+ </object>
+ <object class="NSToolbarSpaceItem" id="962119405">
+ <string key="NSToolbarItemIdentifier">NSToolbarSpaceItem</string>
+ <string key="NSToolbarItemLabel"/>
+ <string key="NSToolbarItemPaletteLabel">Space</string>
+ <nil key="NSToolbarItemToolTip"/>
+ <nil key="NSToolbarItemView"/>
+ <nil key="NSToolbarItemImage"/>
+ <nil key="NSToolbarItemTarget"/>
+ <nil key="NSToolbarItemAction"/>
+ <string key="NSToolbarItemMinSize">{32, 5}</string>
+ <string key="NSToolbarItemMaxSize">{32, 32}</string>
+ <bool key="NSToolbarItemEnabled">YES</bool>
+ <bool key="NSToolbarItemAutovalidates">YES</bool>
+ <int key="NSToolbarItemTag">-1</int>
+ <bool key="NSToolbarIsUserRemovable">YES</bool>
+ <int key="NSToolbarItemVisibilityPriority">0</int>
+ <object class="NSMenuItem" key="NSToolbarItemMenuFormRepresentation">
+ <bool key="NSIsDisabled">YES</bool>
+ <bool key="NSIsSeparator">YES</bool>
+ <string key="NSTitle"/>
+ <string key="NSKeyEquiv"/>
+ <int key="NSKeyEquivModMask">1048576</int>
+ <int key="NSMnemonicLoc">2147483647</int>
+ <reference key="NSOnImage" ref="57375015"/>
+ <reference key="NSMixedImage" ref="179613922"/>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSMutableArray" key="NSToolbarIBAllowedItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="56201621"/>
+ <reference ref="160200354"/>
+ <reference ref="733612615"/>
+ <reference ref="697314889"/>
+ <reference ref="755366444"/>
+ <reference ref="506851974"/>
+ <reference ref="465090285"/>
+ <reference ref="589767847"/>
+ <reference ref="962119405"/>
+ </object>
+ <object class="NSMutableArray" key="NSToolbarIBDefaultItems">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="56201621"/>
+ <reference ref="962119405"/>
+ <reference ref="160200354"/>
+ <reference ref="733612615"/>
+ <reference ref="697314889"/>
+ <reference ref="755366444"/>
+ <reference ref="962119405"/>
+ <reference ref="506851974"/>
+ <reference ref="465090285"/>
+ </object>
+ <reference key="NSToolbarIBSelectableItems" ref="0"/>
+ </object>
+ <nil key="NSUserInterfaceItemIdentifier"/>
<string key="NSWindowContentMinSize">{94, 86}</string>
<object class="NSView" key="NSWindowView" id="568628114">
<reference key="NSNextResponder"/>
@@ -79,33 +521,9 @@
<object class="NSTextView" id="521201844">
<reference key="NSNextResponder" ref="934421653"/>
<int key="NSvFlags">2322</int>
- <object class="NSMutableSet" key="NSDragTypes">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="set.sortedObjects">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>Apple HTML pasteboard type</string>
- <string>Apple PDF pasteboard type</string>
- <string>Apple PICT pasteboard type</string>
- <string>Apple PNG pasteboard type</string>
- <string>Apple URL pasteboard type</string>
- <string>CorePasteboardFlavorType 0x6D6F6F76</string>
- <string>NSColor pasteboard type</string>
- <string>NSFilenamesPboardType</string>
- <string>NSStringPboardType</string>
- <string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
- <string>NeXT RTFD pasteboard type</string>
- <string>NeXT Rich Text Format v1.0 pasteboard type</string>
- <string>NeXT TIFF v4.0 pasteboard type</string>
- <string>NeXT font pasteboard type</string>
- <string>NeXT ruler pasteboard type</string>
- <string>WebURLsWithTitlesPboardType</string>
- <string>public.url</string>
- </object>
- </object>
<string key="NSFrameSize">{439, 44}</string>
<reference key="NSSuperview" ref="934421653"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="497745035"/>
+ <reference key="NSNextKeyView" ref="106470570"/>
<object class="NSTextContainer" key="NSTextContainer" id="515139633">
<object class="NSLayoutManager" key="NSLayoutManager">
<object class="NSTextStorage" key="NSTextStorage">
@@ -126,7 +544,7 @@
<int key="NSTCFlags">1</int>
</object>
<object class="NSTextViewSharedData" key="NSSharedData">
- <int key="NSFlags">12003</int>
+ <int key="NSFlags">67120867</int>
<int key="NSTextCheckingTypes">0</int>
<nil key="NSMarkedAttributes"/>
<object class="NSColor" key="NSBackgroundColor" id="144579518">
@@ -185,22 +603,45 @@
</object>
</object>
<nil key="NSDefaultParagraphStyle"/>
+ <nil key="NSTextFinder"/>
+ <int key="NSPreferredTextFinderStyle">1</int>
</object>
<int key="NSTVFlags">6</int>
- <string key="NSMaxSize">{463, 1e+07}</string>
+ <string key="NSMaxSize">{463, 10000000}</string>
<string key="NSMinize">{223, 44}</string>
<nil key="NSDelegate"/>
</object>
</object>
<string key="NSFrameSize">{439, 600}</string>
<reference key="NSSuperview" ref="60428165"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="521201844"/>
<reference key="NSDocView" ref="521201844"/>
<reference key="NSBGColor" ref="144579518"/>
<object class="NSCursor" key="NSCursor">
- <string key="NSHotSpot">{4, -5}</string>
- <int key="NSCursorType">1</int>
+ <string key="NSHotSpot">{4, 5}</string>
+ <object class="NSImage" key="NSImage">
+ <int key="NSImageFlags">12582912</int>
+ <object class="NSMutableArray" key="NSReps">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <integer value="0"/>
+ <object class="NSBitmapImageRep">
+ <object class="NSData" key="NSTIFFRepresentation">
+ <bytes key="NS.bytes">TU0AKgAAAHCAFUqgBVKsAAAAwdVQUqwaEQeIRGJRGFlYqwWLQ+JxuOQpVRmEx2RROKwOQyOUQSPyaUym
+SxqWyKXyeYxyZzWbSuJTScRCbz2Nz+gRKhUOfTqeUai0OSxiWTiBQSHSGFquGwekxyAgAAAOAQAAAwAA
+AAEAEAAAAQEAAwAAAAEAEAAAAQIAAwAAAAIACAAIAQMAAwAAAAEABQAAAQYAAwAAAAEAAQAAAREABAAA
+AAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAAwAAAAEAEAAAARcABAAAAAEAAABnARwAAwAA
+AAEAAQAAAT0AAwAAAAEAAgAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABAAAAAA</bytes>
+ </object>
+ </object>
+ </object>
+ </object>
+ <object class="NSColor" key="NSColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MCAwAA</bytes>
+ </object>
+ </object>
</object>
<int key="NScvFlags">4</int>
</object>
@@ -209,7 +650,6 @@
<int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{284, 1}, {15, 198}}</string>
<reference key="NSSuperview" ref="60428165"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="583055138"/>
<reference key="NSTarget" ref="60428165"/>
<string key="NSAction">_doScroller:</string>
@@ -221,7 +661,6 @@
<int key="NSvFlags">-2147483392</int>
<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
<reference key="NSSuperview" ref="60428165"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="934421653"/>
<int key="NSsFlags">1</int>
<reference key="NSTarget" ref="60428165"/>
@@ -232,9 +671,8 @@
</object>
<string key="NSFrameSize">{439, 600}</string>
<reference key="NSSuperview" ref="202269651"/>
- <reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="934421653"/>
- <int key="NSsFlags">528</int>
+ <reference key="NSNextKeyView" ref="497745035"/>
+ <int key="NSsFlags">133648</int>
<reference key="NSVScroller" ref="106470570"/>
<reference key="NSHScroller" ref="497745035"/>
<reference key="NSContentView" ref="934421653"/>
@@ -265,7 +703,6 @@
</object>
<string key="NSFrame">{{449, 0}, {411, 600}}</string>
<reference key="NSSuperview" ref="202269651"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView"/>
<string key="FrameName"/>
<string key="GroupName"/>
@@ -293,20 +730,19 @@
</object>
<string key="NSFrameSize">{860, 600}</string>
<reference key="NSSuperview" ref="568628114"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="60428165"/>
<bool key="NSIsVertical">YES</bool>
<int key="NSDividerStyle">3</int>
</object>
</object>
- <string key="NSFrame">{{7, 11}, {860, 600}}</string>
+ <string key="NSFrameSize">{860, 600}</string>
<reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="202269651"/>
</object>
- <string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
- <string key="NSMinSize">{94, 108}</string>
- <string key="NSMaxSize">{1e+13, 1e+13}</string>
+ <string key="NSScreenRect">{{0, 0}, {2560, 1440}}</string>
+ <string key="NSMinSize">{94, 141}</string>
+ <string key="NSMaxSize">{10000000000000, 10000000000000}</string>
+ <bool key="NSWindowIsRestorable">YES</bool>
</object>
<object class="NSCustomObject" id="796877042">
<string key="NSClassName">NSApplication</string>
@@ -371,15 +807,69 @@
</object>
<int key="connectionID">100034</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">header1:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="447532586"/>
+ </object>
+ <int key="connectionID">100084</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">header2:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="309727054"/>
+ </object>
+ <int key="connectionID">100085</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">header3:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="141841420"/>
+ </object>
+ <int key="connectionID">100086</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">blockQuote:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="832384455"/>
+ </object>
+ <int key="connectionID">100087</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">unorderedList:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="427970335"/>
+ </object>
+ <int key="connectionID">100088</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">numberedList:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="967577179"/>
+ </object>
+ <int key="connectionID">100089</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBActionConnection" key="connection">
+ <string key="label">boldItalic:</string>
+ <reference key="source" ref="512844837"/>
+ <reference key="destination" ref="503538619"/>
+ </object>
+ <int key="connectionID">100090</int>
+ </object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBObjectRecord">
<int key="objectID">0</int>
- <object class="NSArray" key="object" id="0">
- <bool key="EncodedWithXMLCoder">YES</bool>
- </object>
+ <reference key="object" ref="0"/>
<reference key="children" ref="580458321"/>
<nil key="parent"/>
</object>
@@ -401,6 +891,7 @@
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="568628114"/>
+ <reference ref="855952761"/>
</object>
<reference key="parent" ref="0"/>
<string key="objectName">Window</string>
@@ -461,47 +952,287 @@
<reference key="object" ref="583055138"/>
<reference key="parent" ref="202269651"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100035</int>
+ <reference key="object" ref="855952761"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="56201621"/>
+ <reference ref="755366444"/>
+ <reference ref="160200354"/>
+ <reference ref="697314889"/>
+ <reference ref="733612615"/>
+ <reference ref="589767847"/>
+ <reference ref="962119405"/>
+ <reference ref="506851974"/>
+ <reference ref="465090285"/>
+ </object>
+ <reference key="parent" ref="275939982"/>
+ <string key="objectName">Toolbar</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100060</int>
+ <reference key="object" ref="56201621"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="503538619"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100058</int>
+ <reference key="object" ref="503538619"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="680482294"/>
+ </object>
+ <reference key="parent" ref="56201621"/>
+ <string key="objectName">Segmented Control - bold, italic, underline</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100059</int>
+ <reference key="object" ref="680482294"/>
+ <reference key="parent" ref="503538619"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100065</int>
+ <reference key="object" ref="755366444"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="832384455"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100063</int>
+ <reference key="object" ref="832384455"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="93537446"/>
+ </object>
+ <reference key="parent" ref="755366444"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100064</int>
+ <reference key="object" ref="93537446"/>
+ <reference key="parent" ref="832384455"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100068</int>
+ <reference key="object" ref="160200354"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="447532586"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100066</int>
+ <reference key="object" ref="447532586"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="229741525"/>
+ </object>
+ <reference key="parent" ref="160200354"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100067</int>
+ <reference key="object" ref="229741525"/>
+ <reference key="parent" ref="447532586"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100069</int>
+ <reference key="object" ref="697314889"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="141841420"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100070</int>
+ <reference key="object" ref="141841420"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="847813247"/>
+ </object>
+ <reference key="parent" ref="697314889"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100071</int>
+ <reference key="object" ref="847813247"/>
+ <reference key="parent" ref="141841420"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100072</int>
+ <reference key="object" ref="733612615"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="309727054"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100073</int>
+ <reference key="object" ref="309727054"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="284637492"/>
+ </object>
+ <reference key="parent" ref="733612615"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100074</int>
+ <reference key="object" ref="284637492"/>
+ <reference key="parent" ref="309727054"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100075</int>
+ <reference key="object" ref="589767847"/>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100076</int>
+ <reference key="object" ref="962119405"/>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100077</int>
+ <reference key="object" ref="506851974"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="427970335"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100078</int>
+ <reference key="object" ref="427970335"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="733277146"/>
+ </object>
+ <reference key="parent" ref="506851974"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100079</int>
+ <reference key="object" ref="733277146"/>
+ <reference key="parent" ref="427970335"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100080</int>
+ <reference key="object" ref="465090285"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="967577179"/>
+ </object>
+ <reference key="parent" ref="855952761"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100081</int>
+ <reference key="object" ref="967577179"/>
+ <object class="NSMutableArray" key="children">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <reference ref="850232164"/>
+ </object>
+ <reference key="parent" ref="465090285"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">100082</int>
+ <reference key="object" ref="850232164"/>
+ <reference key="parent" ref="967577179"/>
+ </object>
</object>
</object>
<object class="NSMutableDictionary" key="flattenedProperties">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
+ <string>-1.IBPluginDependency</string>
+ <string>-2.IBPluginDependency</string>
<string>-3.IBPluginDependency</string>
<string>100021.IBPluginDependency</string>
<string>100022.IBPluginDependency</string>
<string>100023.IBPluginDependency</string>
<string>100024.CustomClassName</string>
<string>100024.IBPluginDependency</string>
+ <string>100024.usesInspectorBar</string>
<string>100025.IBPluginDependency</string>
<string>100026.IBPluginDependency</string>
- <string>5.IBEditorWindowLastContentRect</string>
+ <string>100035.IBPluginDependency</string>
+ <string>100035.designableToolbarIdentifier</string>
+ <string>100058.IBPluginDependency</string>
+ <string>100059.IBNSSegmentedControlInspectorSelectedSegmentMetadataKey</string>
+ <string>100059.IBPluginDependency</string>
+ <string>100060.IBPluginDependency</string>
+ <string>100063.IBPluginDependency</string>
+ <string>100064.IBPluginDependency</string>
+ <string>100065.IBPluginDependency</string>
+ <string>100066.IBPluginDependency</string>
+ <string>100067.IBPluginDependency</string>
+ <string>100068.IBPluginDependency</string>
+ <string>100069.IBPluginDependency</string>
+ <string>100070.IBPluginDependency</string>
+ <string>100071.IBPluginDependency</string>
+ <string>100072.IBPluginDependency</string>
+ <string>100073.IBPluginDependency</string>
+ <string>100074.IBPluginDependency</string>
+ <string>100075.IBPluginDependency</string>
+ <string>100076.IBPluginDependency</string>
+ <string>100077.IBPluginDependency</string>
+ <string>100078.IBPluginDependency</string>
+ <string>100079.IBPluginDependency</string>
+ <string>100080.IBPluginDependency</string>
+ <string>100081.IBPluginDependency</string>
+ <string>100082.IBPluginDependency</string>
<string>5.IBPluginDependency</string>
<string>5.IBWindowTemplateEditedContentRect</string>
- <string>5.ImportedFromIB2</string>
<string>5.NSWindowTemplate.visibleAtLaunch</string>
- <string>5.editorWindowContentRectSynchronizationRect</string>
<string>6.IBPluginDependency</string>
- <string>6.ImportedFromIB2</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<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>EditPaneTextView</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <boolean value="NO"/>
<string>com.apple.WebKitIBPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{597, 57}, {769, 667}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string>{{597, 57}, {769, 667}}</string>
+ <string>DocumentToolbar</string>
+ <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="1"/>
+ <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>
+ <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>
+ <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>{{597, 57}, {769, 667}}</string>
<boolean value="NO"/>
- <string>{{201, 387}, {507, 413}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- <integer value="1"/>
</object>
</object>
<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -516,157 +1247,9 @@
<reference key="dict.values" ref="0"/>
</object>
<nil key="sourceID"/>
- <int key="maxID">100034</int>
- </object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <object class="NSMutableArray" key="referencedPartialClassDescriptions">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBPartialClassDescription">
- <string key="className">EditPaneTextView</string>
- <string key="superclassName">NSTextView</string>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/EditPaneTextView.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">MyDocument</string>
- <string key="superclassName">NSDocument</string>
- <object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">copyGeneratedHTMLAction:</string>
- <string key="NS.object.0">id</string>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">copyGeneratedHTMLAction:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">copyGeneratedHTMLAction:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="outlets">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>htmlPreviewWebView</string>
- <string>markdownSourceTextView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>WebView</string>
- <string>EditPaneTextView</string>
- </object>
- </object>
- <object class="NSMutableDictionary" key="toOneOutletInfosByName">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="NSArray" key="dict.sortedKeys">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <string>htmlPreviewWebView</string>
- <string>markdownSourceTextView</string>
- </object>
- <object class="NSMutableArray" key="dict.values">
- <bool key="EncodedWithXMLCoder">YES</bool>
- <object class="IBToOneOutletInfo">
- <string key="name">htmlPreviewWebView</string>
- <string key="candidateClassName">WebView</string>
- </object>
- <object class="IBToOneOutletInfo">
- <string key="name">markdownSourceTextView</string>
- <string key="candidateClassName">EditPaneTextView</string>
- </object>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/MyDocument.h</string>
- </object>
- </object>
- <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="NSMutableArray" 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="NSMutableArray" 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">WebView</string>
- <object class="NSMutableDictionary" key="actions">
- <string key="NS.key.0">reloadFromOrigin:</string>
- <string key="NS.object.0">id</string>
- </object>
- <object class="NSMutableDictionary" key="actionInfosByName">
- <string key="NS.key.0">reloadFromOrigin:</string>
- <object class="IBActionInfo" key="NS.object.0">
- <string key="name">reloadFromOrigin:</string>
- <string key="candidateClassName">id</string>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/WebView.h</string>
- </object>
- </object>
- </object>
+ <int key="maxID">100090</int>
</object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
@@ -679,5 +1262,28 @@
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <object class="NSMutableDictionary" key="IBDocument.LastKnownImageSizes">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <object class="NSArray" key="dict.sortedKeys">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>NSMenuCheckmark</string>
+ <string>NSMenuMixedState</string>
+ <string>bold</string>
+ <string>italic</string>
+ <string>nlist</string>
+ <string>quote</string>
+ <string>ulist</string>
+ </object>
+ <object class="NSMutableArray" key="dict.values">
+ <bool key="EncodedWithXMLCoder">YES</bool>
+ <string>{9, 8}</string>
+ <string>{7, 2}</string>
+ <string>{7, 8}</string>
+ <string>{6, 9}</string>
+ <string>{8, 8}</string>
+ <string>{8, 8}</string>
+ <string>{8, 8}</string>
+ </object>
+ </object>
</data>
</archive>
View
33 MarkdownLive.xcodeproj/project.pbxproj
@@ -8,6 +8,12 @@
/* Begin PBXBuildFile section */
11EF12E0142D24BB0086C77F /* MLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 11EF12DF142D24BB0086C77F /* MLAppDelegate.m */; };
+ 11EF12E6142D5C1D0086C77F /* bold.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12E3142D5C1D0086C77F /* bold.png */; };
+ 11EF12E7142D5C1D0086C77F /* italic.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12E4142D5C1D0086C77F /* italic.png */; };
+ 11EF12E8142D5C1D0086C77F /* underline.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12E5142D5C1D0086C77F /* underline.png */; };
+ 11EF12EA142D60000086C77F /* quote.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12E9142D60000086C77F /* quote.png */; };
+ 11EF12ED142D63050086C77F /* nlist.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12EB142D63050086C77F /* nlist.png */; };
+ 11EF12EE142D63050086C77F /* ulist.png in Resources */ = {isa = PBXBuildFile; fileRef = 11EF12EC142D63050086C77F /* ulist.png */; };
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
795F6C87105D70A300D1F90A /* MarkdownLiveApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */; };
@@ -75,6 +81,12 @@
1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
11EF12DE142D24BB0086C77F /* MLAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLAppDelegate.h; sourceTree = "<group>"; };
11EF12DF142D24BB0086C77F /* MLAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLAppDelegate.m; sourceTree = "<group>"; };
+ 11EF12E3142D5C1D0086C77F /* bold.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = bold.png; sourceTree = "<group>"; };
+ 11EF12E4142D5C1D0086C77F /* italic.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = italic.png; sourceTree = "<group>"; };
+ 11EF12E5142D5C1D0086C77F /* underline.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = underline.png; sourceTree = "<group>"; };
+ 11EF12E9142D60000086C77F /* quote.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = quote.png; sourceTree = "<group>"; };
+ 11EF12EB142D63050086C77F /* nlist.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = nlist.png; sourceTree = "<group>"; };
+ 11EF12EC142D63050086C77F /* ulist.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ulist.png; sourceTree = "<group>"; };
13E42FBA07B3F13500E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
1DDD58290DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MyDocument.xib; sourceTree = "<group>"; };
1DDD582B0DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -167,6 +179,20 @@
name = "Other Frameworks";
sourceTree = "<group>";
};
+ 11EF12E2142D5C1D0086C77F /* Images */ = {
+ isa = PBXGroup;
+ children = (
+ 11EF12EB142D63050086C77F /* nlist.png */,
+ 11EF12EC142D63050086C77F /* ulist.png */,
+ 11EF12E9142D60000086C77F /* quote.png */,
+ 11EF12E3142D5C1D0086C77F /* bold.png */,
+ 11EF12E4142D5C1D0086C77F /* italic.png */,
+ 11EF12E5142D5C1D0086C77F /* underline.png */,
+ );
+ name = Images;
+ path = English.lproj/Images;
+ sourceTree = "<group>";
+ };
19C28FB0FE9D524F11CA2CBB /* Products */ = {
isa = PBXGroup;
children = (
@@ -236,6 +262,7 @@
2A37F4B8FDCFA73011CA2CEA /* Resources */ = {
isa = PBXGroup;
children = (
+ 11EF12E2142D5C1D0086C77F /* Images */,
226936E612E7CDC500171322 /* styles.css */,
795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */,
2A37F4B9FDCFA73011CA2CEA /* Credits.rtf */,
@@ -391,6 +418,12 @@
1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */,
1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */,
795F6C87105D70A300D1F90A /* MarkdownLiveApp.icns in Resources */,
+ 11EF12E6142D5C1D0086C77F /* bold.png in Resources */,
+ 11EF12E7142D5C1D0086C77F /* italic.png in Resources */,
+ 11EF12E8142D5C1D0086C77F /* underline.png in Resources */,
+ 11EF12EA142D60000086C77F /* quote.png in Resources */,
+ 11EF12ED142D63050086C77F /* nlist.png in Resources */,
+ 11EF12EE142D63050086C77F /* ulist.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
10 MyDocument.h
@@ -27,4 +27,14 @@
- (IBAction)copyGeneratedHTMLAction:(id)sender;
+- (IBAction)boldItalic:(id)sender;
+- (IBAction)bold:(id)sender;
+- (IBAction)italic:(id)sender;
+- (IBAction)header1:(id)sender;
+- (IBAction)header2:(id)sender;
+- (IBAction)header3:(id)sender;
+- (IBAction)blockQuote:(id)sender;
+- (IBAction)unorderedList:(id)sender;
+- (IBAction)numberedList:(id)sender;
+
@end
View
153 MyDocument.m
@@ -12,6 +12,15 @@
NSString *kMarkdownDocumentType = @"MarkdownDocumentType";
+
+@interface MyDocument ()
+
+- (void)_surroundSelectionWithString:(NSString *)string;
+- (void)_addStringBeforeSelectedLines:(NSString *)string;
+
+@end
+
+
// class extension
@interface MyDocument ()
@@ -195,7 +204,7 @@ - (void)updateContent {
NSView *docView = [[[htmlPreviewWebView mainFrame] frameView] documentView];
NSView *parent = [docView superview];
if (parent) {
- NSAssert([parent isKindOfClass:[NSClipView class]], nil);
+ NSAssert([parent isKindOfClass:[NSClipView class]], @"");
savedOrigin = [parent bounds].origin;
// This line from Darin from http://lists.apple.com/archives/webkitsdk-dev/2003/Dec/msg00004.html :
savedAtBottom = [docView isFlipped]
@@ -266,4 +275,146 @@ - (IBAction)copyGeneratedHTMLAction:(id)sender {
[[NSPasteboard generalPasteboard] setString:[ORCDiscount markdown2HTML:[markdownSource string]] forType:NSStringPboardType];
}
+- (void)_surroundSelectionWithString:(NSString *)string
+{
+ NSMutableString *newString = [markdownSourceTextView.string mutableCopy];
+ NSMutableArray *newSelection = [[NSMutableArray alloc] init];
+ NSUInteger addedCharacters = 0;
+
+ for (NSValue *rangeInfo in [markdownSourceTextView selectedRanges]) {
+ NSRange range = [rangeInfo rangeValue];
+ range.location += addedCharacters;
+
+ [newString insertString:string atIndex:range.location + range.length];
+ [newString insertString:string atIndex:range.location];
+
+ addedCharacters += [string length] * 2;
+
+ range.location += [string length];
+ [newSelection addObject:[NSValue valueWithRange:range]];
+ }
+
+ [markdownSourceTextView setString:newString];
+ [markdownSourceTextView setSelectedRanges:newSelection];
+ [newString release];
+ [newSelection release];
+
+ [self updateContent];
+}
+
+- (void)_addStringBeforeSelectedLines:(NSString *)string
+{
+ NSString *oldString = markdownSourceTextView.string;
+ NSMutableString *newString = [oldString mutableCopy];
+ NSMutableArray *newSelection = [markdownSourceTextView.selectedRanges mutableCopy];
+ __block NSInteger currentSelectionIndex = -1;
+
+
+ [oldString enumerateLinesUsingBlock:^(NSString *line, BOOL *stop) {
+ NSRange originalLineRange = [oldString rangeOfString:line];
+ NSRange lineRange = [newString rangeOfString:line];
+ __block BOOL stringAdded = NO;
+ NSArray *selection = [newSelection copy];
+ [newSelection removeAllObjects];
+
+ [selection enumerateObjectsUsingBlock:^(id rangeInfo, NSUInteger index, BOOL *stop) {
+ NSRange selectionRange = [rangeInfo rangeValue];
+ BOOL justAdded = NO;
+
+ if (!stringAdded && NSIntersectionRange(selectionRange, originalLineRange).length != 0) {
+ [newString insertString:string atIndex:lineRange.location];
+
+ justAdded = currentSelectionIndex != index;
+ currentSelectionIndex = index;
+ stringAdded = YES;
+ }
+
+ NSLog(@"justAdded: %d", justAdded);
+
+ if (stringAdded && currentSelectionIndex != index) {
+ selectionRange.location += [string length];
+ }
+
+ if (justAdded && lineRange.location != selectionRange.location) {
+ selectionRange.location += [string length];
+ } else {
+ selectionRange.length += [string length];