diff options
-rw-r--r-- | Interfaces/English.lproj/FieldEditorSheet.xib | 1281 | ||||
-rw-r--r-- | Source/SPFieldEditor.h | 3 | ||||
-rw-r--r-- | Source/SPFieldEditor.m | 96 | ||||
-rw-r--r-- | sequel-pro.xcodeproj/project.pbxproj | 12 |
4 files changed, 1348 insertions, 44 deletions
diff --git a/Interfaces/English.lproj/FieldEditorSheet.xib b/Interfaces/English.lproj/FieldEditorSheet.xib new file mode 100644 index 00000000..71414e99 --- /dev/null +++ b/Interfaces/English.lproj/FieldEditorSheet.xib @@ -0,0 +1,1281 @@ +<?xml version="1.0" encoding="UTF-8"?> +<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03"> + <data> + <int key="IBDocument.SystemTarget">1050</int> + <string key="IBDocument.SystemVersion">9J61</string> + <string key="IBDocument.InterfaceBuilderVersion">677</string> + <string key="IBDocument.AppKitVersion">949.46</string> + <string key="IBDocument.HIToolboxVersion">353.00</string> + <object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="2"/> + </object> + <object class="NSArray" key="IBDocument.PluginDependencies"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + </object> + <object class="NSMutableDictionary" key="IBDocument.Metadata"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <object class="NSMutableArray" key="IBDocument.RootObjects" id="1000"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSCustomObject" id="1001"> + <string key="NSClassName">SPFieldEditor</string> + </object> + <object class="NSCustomObject" id="1003"> + <string key="NSClassName">FirstResponder</string> + </object> + <object class="NSCustomObject" id="1004"> + <string key="NSClassName">NSApplication</string> + </object> + <object class="NSWindowTemplate" id="172882781"> + <int key="NSWindowStyleMask">9</int> + <int key="NSWindowBacking">2</int> + <string key="NSWindowRect">{{115, 389}, {667, 416}}</string> + <int key="NSWTFlags">1886912512</int> + <string key="NSWindowTitle">Field Editor</string> + <string key="NSWindowClass">NSWindow</string> + <object class="NSMutableString" key="NSViewClass"> + <characters key="NS.bytes">View</characters> + </object> + <string key="NSWindowContentMaxSize">{3.40282e+38, 3.40282e+38}</string> + <string key="NSWindowContentMinSize">{560, 200}</string> + <object class="NSView" key="NSWindowView" id="559857537"> + <reference key="NSNextResponder"/> + <int key="NSvFlags">4370</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSBox" id="92171076"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">34</int> + <string key="NSFrame">{{0, 36}, {667, 5}}</string> + <reference key="NSSuperview" ref="559857537"/> + <string key="NSOffsets">{0, 0}</string> + <object class="NSTextFieldCell" key="NSTitleCell"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Box</string> + <object class="NSFont" key="NSSupport" id="485752450"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">1.300000e+01</double> + <int key="NSfFlags">1044</int> + </object> + <object class="NSColor" key="NSBackgroundColor" id="186095045"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">textBackgroundColor</string> + <object class="NSColor" key="NSColor" id="940290613"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MQA</bytes> + </object> + </object> + <object class="NSColor" key="NSTextColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MCAwLjgwMDAwMDAxAA</bytes> + </object> + </object> + <int key="NSBorderType">3</int> + <int key="NSBoxType">2</int> + <int key="NSTitlePosition">0</int> + <bool key="NSTransparent">NO</bool> + </object> + <object class="NSButton" id="315097820"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">257</int> + <string key="NSFrame">{{581, 7}, {66, 25}}</string> + <reference key="NSSuperview" ref="559857537"/> + <int key="NSTag">1</int> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="630700737"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134348800</int> + <string key="NSContents">OK</string> + <object class="NSFont" key="NSSupport" id="26"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">1.100000e+01</double> + <int key="NSfFlags">3100</int> + </object> + <int key="NSTag">1</int> + <reference key="NSControlView" ref="315097820"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">35</int> + <object class="NSFont" key="NSAlternateImage"> + <string key="NSName">Helvetica</string> + <double key="NSSize">1.100000e+01</double> + <int key="NSfFlags">16</int> + </object> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">DQ</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSButton" id="760872156"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">257</int> + <string key="NSFrame">{{507, 7}, {66, 25}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="617021739"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134348800</int> + <string key="NSContents">Cancel</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="760872156"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">35</int> + <object class="NSFont" key="NSAlternateImage" id="815573050"> + <string key="NSName">LucidaGrande</string> + <double key="NSSize">1.100000e+01</double> + <int key="NSfFlags">16</int> + </object> + <string key="NSAlternateContents"/> + <string type="base64-UTF8" key="NSKeyEquivalent">Gw</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSButton" id="212849560"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{94, 7}, {66, 25}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="1054617135"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134348800</int> + <string key="NSContents">Save...</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="212849560"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">268435491</int> + <reference key="NSAlternateImage" ref="815573050"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent">s</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSButton" id="16151679"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{20, 7}, {66, 25}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSButtonCell" key="NSCell" id="369856023"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">134348800</int> + <string key="NSContents">Open...</string> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="16151679"/> + <int key="NSButtonFlags">-2038284033</int> + <int key="NSButtonFlags2">268435491</int> + <reference key="NSAlternateImage" ref="815573050"/> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent">o</string> + <int key="NSPeriodicDelay">200</int> + <int key="NSPeriodicInterval">25</int> + </object> + </object> + <object class="NSPopUpButton" id="766971294"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{328, 7}, {48, 25}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSPopUpButtonCell" key="NSCell" id="583599991"> + <int key="NSCellFlags">71433792</int> + <int key="NSCellFlags2">134350848</int> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="766971294"/> + <int key="NSButtonFlags">-2031075073</int> + <int key="NSButtonFlags2">33554467</int> + <string key="NSAlternateContents"/> + <string key="NSKeyEquivalent"/> + <int key="NSPeriodicDelay">400</int> + <int key="NSPeriodicInterval">75</int> + <object class="NSMenuItem" key="NSMenuItem" id="524851662"> + <reference key="NSMenu" ref="70895771"/> + <bool key="NSIsHidden">YES</bool> + <string key="NSTitle"/> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <object class="NSCustomResource" key="NSImage"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSQuickLookTemplate</string> + </object> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="583599991"/> + </object> + <bool key="NSMenuItemRespectAlignment">YES</bool> + <object class="NSMenu" key="NSMenu" id="70895771"> + <string key="NSTitle">OtherViews</string> + <object class="NSMutableArray" key="NSMenuItems"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="524851662"/> + <object class="NSMenuItem" id="657320705"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">Image</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <object class="NSCustomResource" key="NSOnImage" id="670969392"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuCheckmark</string> + </object> + <object class="NSCustomResource" key="NSMixedImage" id="533428846"> + <string key="NSClassName">NSImage</string> + <string key="NSResourceName">NSMenuMixedState</string> + </object> + <string key="NSAction">_popUpItemAction:</string> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="331580392"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">Sound (m4a)</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">1</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="350758430"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">Sound (mp3)</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">2</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="231072377"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">Sound (linear)</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">3</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="254749674"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">Movie</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">4</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="853091810"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">pdf</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">5</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="364525587"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">html</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">6</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="800624537"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">doc</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">7</int> + <reference key="NSTarget" ref="583599991"/> + </object> + <object class="NSMenuItem" id="964663224"> + <reference key="NSMenu" ref="70895771"/> + <string key="NSTitle">rtf</string> + <string key="NSKeyEquiv"/> + <int key="NSMnemonicLoc">2147483647</int> + <reference key="NSOnImage" ref="670969392"/> + <reference key="NSMixedImage" ref="533428846"/> + <string key="NSAction">_popUpItemAction:</string> + <int key="NSTag">8</int> + <reference key="NSTarget" ref="583599991"/> + </object> + </object> + </object> + <bool key="NSPullDown">YES</bool> + <int key="NSPreferredEdge">1</int> + <bool key="NSUsesItemFromMenu">YES</bool> + <bool key="NSAltersState">YES</bool> + <int key="NSArrowPosition">2</int> + </object> + </object> + <object class="NSSegmentedControl" id="13679998"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">292</int> + <string key="NSFrame">{{183, 10}, {137, 19}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSSegmentedCell" key="NSCell" id="772630454"> + <int key="NSCellFlags">-2080244224</int> + <int key="NSCellFlags2">131072</int> + <reference key="NSSupport" ref="26"/> + <reference key="NSControlView" ref="13679998"/> + <object class="NSMutableArray" key="NSSegmentImages"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSSegmentItem"> + <double key="NSSegmentItemWidth">4.500000e+01</double> + <string key="NSSegmentItemLabel">Text</string> + <string key="NSSegmentItemTooltip">Show data as text</string> + <int key="NSSegmentItemImageScaling">0</int> + </object> + <object class="NSSegmentItem"> + <double key="NSSegmentItemWidth">4.400000e+01</double> + <string key="NSSegmentItemLabel">Image</string> + <string key="NSSegmentItemTooltip">Try to show data as image</string> + <int key="NSSegmentItemTag">1</int> + <bool key="NSSegmentItemSelected">YES</bool> + <int key="NSSegmentItemImageScaling">0</int> + </object> + <object class="NSSegmentItem"> + <double key="NSSegmentItemWidth">4.400000e+01</double> + <string key="NSSegmentItemLabel">Hex</string> + <string key="NSSegmentItemTooltip">Show data hexadecimal</string> + <int key="NSSegmentItemImageScaling">0</int> + </object> + </object> + <int key="NSSelectedSegment">1</int> + <int key="NSSegmentStyle">2</int> + </object> + </object> + <object class="NSScrollView" id="983787914"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">274</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSClipView" id="1068411389"> + <reference key="NSNextResponder" ref="983787914"/> + <int key="NSvFlags">2304</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTextView" id="459839028"> + <reference key="NSNextResponder" ref="1068411389"/> + <int key="NSvFlags">2322</int> + <object class="NSMutableSet" key="NSDragTypes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" 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>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> + </object> + </object> + <string key="NSFrameSize">{667, 14}</string> + <reference key="NSSuperview" ref="1068411389"/> + <object class="NSTextContainer" key="NSTextContainer" id="222392072"> + <object class="NSLayoutManager" key="NSLayoutManager"> + <object class="NSTextStorage" key="NSTextStorage"> + <object class="NSMutableString" key="NSString"> + <characters key="NS.bytes"/> + </object> + <nil key="NSDelegate"/> + </object> + <object class="NSMutableArray" key="NSTextContainers"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="222392072"/> + </object> + <int key="NSLMFlags">6</int> + <nil key="NSDelegate"/> + </object> + <reference key="NSTextView" ref="459839028"/> + <double key="NSWidth">6.670000e+02</double> + <int key="NSTCFlags">1</int> + </object> + <object class="NSTextViewSharedData" key="NSSharedData"> + <int key="NSFlags">2917</int> + <reference key="NSBackgroundColor" ref="940290613"/> + <object class="NSColor" key="NSInsertionColor" id="1021276550"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MAA</bytes> + </object> + <object class="NSDictionary" key="NSSelectedAttributes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSBackgroundColor</string> + <string>NSColor</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSColor" id="30971379"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">selectedTextBackgroundColor</string> + <object class="NSColor" key="NSColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MC42NjY2NjY2OQA</bytes> + </object> + </object> + <object class="NSColor" id="935002176"> + <int key="NSColorSpace">6</int> + <string key="NSCatalogName">System</string> + <string key="NSColorName">selectedTextColor</string> + <reference key="NSColor" ref="1021276550"/> + </object> + </object> + </object> + <nil key="NSMarkedAttributes"/> + <nil key="NSLinkAttributes"/> + <nil key="NSDefaultParagraphStyle"/> + </object> + <int key="NSTVFlags">6</int> + <string key="NSMaxSize">{1334, 1e+07}</string> + <string key="NSMinize">{283, 0}</string> + <nil key="NSDelegate"/> + </object> + </object> + <string key="NSFrameSize">{667, 370}</string> + <reference key="NSSuperview" ref="983787914"/> + <reference key="NSNextKeyView" ref="459839028"/> + <reference key="NSDocView" ref="459839028"/> + <reference key="NSBGColor" ref="940290613"/> + <object class="NSCursor" key="NSCursor" id="956874367"> + <string key="NSHotSpot">{4, -5}</string> + <int key="NSCursorType">1</int> + </object> + <int key="NScvFlags">4</int> + </object> + <object class="NSScroller" id="977735067"> + <reference key="NSNextResponder" ref="983787914"/> + <int key="NSvFlags">-2147483392</int> + <string key="NSFrame">{{220, 1}, {11, 141}}</string> + <reference key="NSSuperview" ref="983787914"/> + <int key="NSsFlags">256</int> + <reference key="NSTarget" ref="983787914"/> + <string key="NSAction">_doScroller:</string> + <double key="NSPercent">9.929578e-01</double> + </object> + <object class="NSScroller" id="426249328"> + <reference key="NSNextResponder" ref="983787914"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{-100, -100}, {87, 18}}</string> + <reference key="NSSuperview" ref="983787914"/> + <int key="NSsFlags">257</int> + <reference key="NSTarget" ref="983787914"/> + <string key="NSAction">_doScroller:</string> + <double key="NSCurValue">1.000000e+00</double> + <double key="NSPercent">9.456522e-01</double> + </object> + </object> + <string key="NSFrame">{{0, 39}, {667, 370}}</string> + <reference key="NSSuperview" ref="559857537"/> + <reference key="NSNextKeyView" ref="1068411389"/> + <int key="NSsFlags">528</int> + <reference key="NSVScroller" ref="977735067"/> + <reference key="NSHScroller" ref="426249328"/> + <reference key="NSContentView" ref="1068411389"/> + </object> + <object class="NSImageView" id="189033461"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">274</int> + <object class="NSMutableSet" key="NSDragTypes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="set.sortedObjects"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>Apple PDF pasteboard type</string> + <string>Apple PICT pasteboard type</string> + <string>Apple PNG pasteboard type</string> + <string>NSFilenamesPboardType</string> + <string>NeXT Encapsulated PostScript v1.2 pasteboard type</string> + <string>NeXT TIFF v4.0 pasteboard type</string> + </object> + </object> + <string key="NSFrame">{{0, 39}, {667, 370}}</string> + <reference key="NSSuperview" ref="559857537"/> + <bool key="NSEnabled">YES</bool> + <object class="NSImageCell" key="NSCell" id="521189288"> + <int key="NSCellFlags">270663168</int> + <int key="NSCellFlags2">32768</int> + <int key="NSAlign">0</int> + <int key="NSScale">0</int> + <int key="NSStyle">0</int> + <bool key="NSAnimates">YES</bool> + </object> + <bool key="NSEditable">YES</bool> + </object> + <object class="NSScrollView" id="604699677"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">274</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSClipView" id="967441740"> + <reference key="NSNextResponder" ref="604699677"/> + <int key="NSvFlags">2304</int> + <object class="NSMutableArray" key="NSSubviews"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSTextView" id="702566211"> + <reference key="NSNextResponder" ref="967441740"/> + <int key="NSvFlags">2322</int> + <object class="NSMutableSet" key="NSDragTypes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" 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>CorePasteboardFlavorType 0x75726C20</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> + </object> + </object> + <string key="NSFrameSize">{667, 14}</string> + <reference key="NSSuperview" ref="967441740"/> + <object class="NSTextContainer" key="NSTextContainer" id="872196016"> + <object class="NSLayoutManager" key="NSLayoutManager"> + <object class="NSTextStorage" key="NSTextStorage"> + <object class="NSMutableString" key="NSString"> + <characters key="NS.bytes"/> + </object> + <nil key="NSDelegate"/> + </object> + <object class="NSMutableArray" key="NSTextContainers"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="872196016"/> + </object> + <int key="NSLMFlags">6</int> + <nil key="NSDelegate"/> + </object> + <reference key="NSTextView" ref="702566211"/> + <double key="NSWidth">6.670000e+02</double> + <int key="NSTCFlags">1</int> + </object> + <object class="NSTextViewSharedData" key="NSSharedData"> + <int key="NSFlags">4067</int> + <reference key="NSBackgroundColor" ref="940290613"/> + <reference key="NSInsertionColor" ref="1021276550"/> + <object class="NSDictionary" key="NSSelectedAttributes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSBackgroundColor</string> + <string>NSColor</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="30971379"/> + <reference ref="935002176"/> + </object> + </object> + <nil key="NSMarkedAttributes"/> + <object class="NSDictionary" key="NSLinkAttributes"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSColor</string> + <string>NSCursor</string> + <string>NSUnderline</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSColor"> + <int key="NSColorSpace">1</int> + <bytes key="NSRGB">MCAwIDEAA</bytes> + </object> + <object class="NSCursor"> + <string key="NSHotSpot">{8, -8}</string> + <int key="NSCursorType">13</int> + </object> + <integer value="1" id="9"/> + </object> + </object> + <nil key="NSDefaultParagraphStyle"/> + </object> + <int key="NSTVFlags">6</int> + <string key="NSMaxSize">{1334, 1e+07}</string> + <string key="NSMinize">{87, 0}</string> + <nil key="NSDelegate"/> + </object> + </object> + <string key="NSFrameSize">{667, 370}</string> + <reference key="NSSuperview" ref="604699677"/> + <reference key="NSNextKeyView" ref="702566211"/> + <reference key="NSDocView" ref="702566211"/> + <reference key="NSBGColor" ref="940290613"/> + <reference key="NSCursor" ref="956874367"/> + <int key="NScvFlags">4</int> + </object> + <object class="NSScroller" id="699979333"> + <reference key="NSNextResponder" ref="604699677"/> + <int key="NSvFlags">-2147483392</int> + <string key="NSFrame">{{639, 2}, {11, 359}}</string> + <reference key="NSSuperview" ref="604699677"/> + <int key="NSsFlags">256</int> + <reference key="NSTarget" ref="604699677"/> + <string key="NSAction">_doScroller:</string> + <double key="NSPercent">6.016427e-01</double> + </object> + <object class="NSScroller" id="393370468"> + <reference key="NSNextResponder" ref="604699677"/> + <int key="NSvFlags">256</int> + <string key="NSFrame">{{-100, -100}, {87, 18}}</string> + <reference key="NSSuperview" ref="604699677"/> + <int key="NSsFlags">257</int> + <reference key="NSTarget" ref="604699677"/> + <string key="NSAction">_doScroller:</string> + <double key="NSCurValue">1.000000e+00</double> + <double key="NSPercent">9.456522e-01</double> + </object> + </object> + <string key="NSFrame">{{0, 39}, {667, 370}}</string> + <reference key="NSSuperview" ref="559857537"/> + <reference key="NSNextKeyView" ref="967441740"/> + <int key="NSsFlags">528</int> + <reference key="NSVScroller" ref="699979333"/> + <reference key="NSHScroller" ref="393370468"/> + <reference key="NSContentView" ref="967441740"/> + </object> + <object class="NSProgressIndicator" id="450296515"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">1325</int> + <object class="NSPSMatrix" key="NSDrawMatrix"/> + <string key="NSFrame">{{325, 220}, {32, 32}}</string> + <reference key="NSSuperview" ref="559857537"/> + <int key="NSpiFlags">28682</int> + <double key="NSMinValue">1.600000e+01</double> + <double key="NSMaxValue">1.000000e+02</double> + </object> + <object class="NSBox" id="398943605"> + <reference key="NSNextResponder" ref="559857537"/> + <int key="NSvFlags">10</int> + <string key="NSFrame">{{0, 407}, {667, 5}}</string> + <reference key="NSSuperview" ref="559857537"/> + <string key="NSOffsets">{0, 0}</string> + <object class="NSTextFieldCell" key="NSTitleCell"> + <int key="NSCellFlags">67239424</int> + <int key="NSCellFlags2">0</int> + <string key="NSContents">Box</string> + <reference key="NSSupport" ref="485752450"/> + <reference key="NSBackgroundColor" ref="186095045"/> + <object class="NSColor" key="NSTextColor"> + <int key="NSColorSpace">3</int> + <bytes key="NSWhite">MCAwLjgwMDAwMDAxAA</bytes> + </object> + </object> + <int key="NSBorderType">3</int> + <int key="NSBoxType">2</int> + <int key="NSTitlePosition">0</int> + <bool key="NSTransparent">NO</bool> + </object> + </object> + <string key="NSFrameSize">{667, 416}</string> + <reference key="NSSuperview"/> + </object> + <string key="NSScreenRect">{{0, 0}, {1280, 778}}</string> + <string key="NSMinSize">{560, 222}</string> + <string key="NSMaxSize">{3.40282e+38, 3.40282e+38}</string> + <string key="NSFrameAutosaveName">SPEditSheet</string> + </object> + </object> + <object class="IBObjectContainer" key="IBDocument.Objects"> + <object class="NSMutableArray" key="connectionRecords"> + <bool key="EncodedWithXMLCoder">YES</bool> + </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="1002"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <reference key="children" ref="1000"/> + <nil key="parent"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-2</int> + <reference key="object" ref="1001"/> + <reference key="parent" ref="1002"/> + <string type="base64-UTF8" key="objectName">RmlsZSdzIE93bmVyA</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-1</int> + <reference key="object" ref="1003"/> + <reference key="parent" ref="1002"/> + <string key="objectName">First Responder</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">-3</int> + <reference key="object" ref="1004"/> + <reference key="parent" ref="1002"/> + <string key="objectName">Application</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">1</int> + <reference key="object" ref="172882781"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="559857537"/> + </object> + <reference key="parent" ref="1002"/> + <string key="objectName">Field Edit Sheet</string> + </object> + <object class="IBObjectRecord"> + <int key="objectID">2</int> + <reference key="object" ref="559857537"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="398943605"/> + <reference ref="450296515"/> + <reference ref="604699677"/> + <reference ref="983787914"/> + <reference ref="189033461"/> + <reference ref="766971294"/> + <reference ref="13679998"/> + <reference ref="760872156"/> + <reference ref="212849560"/> + <reference ref="16151679"/> + <reference ref="315097820"/> + <reference ref="92171076"/> + </object> + <reference key="parent" ref="172882781"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">3</int> + <reference key="object" ref="398943605"/> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">4</int> + <reference key="object" ref="450296515"/> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">5</int> + <reference key="object" ref="604699677"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="702566211"/> + <reference ref="699979333"/> + <reference ref="393370468"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">6</int> + <reference key="object" ref="983787914"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="426249328"/> + <reference ref="977735067"/> + <reference ref="459839028"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">7</int> + <reference key="object" ref="189033461"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="521189288"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">8</int> + <reference key="object" ref="766971294"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="583599991"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">9</int> + <reference key="object" ref="13679998"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="772630454"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">10</int> + <reference key="object" ref="760872156"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="617021739"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">11</int> + <reference key="object" ref="212849560"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="1054617135"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">12</int> + <reference key="object" ref="16151679"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="369856023"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">13</int> + <reference key="object" ref="315097820"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="630700737"/> + </object> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">14</int> + <reference key="object" ref="92171076"/> + <reference key="parent" ref="559857537"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">15</int> + <reference key="object" ref="630700737"/> + <reference key="parent" ref="315097820"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">16</int> + <reference key="object" ref="369856023"/> + <reference key="parent" ref="16151679"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">17</int> + <reference key="object" ref="1054617135"/> + <reference key="parent" ref="212849560"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">18</int> + <reference key="object" ref="617021739"/> + <reference key="parent" ref="760872156"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">19</int> + <reference key="object" ref="772630454"/> + <reference key="parent" ref="13679998"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">20</int> + <reference key="object" ref="583599991"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="70895771"/> + </object> + <reference key="parent" ref="766971294"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">21</int> + <reference key="object" ref="70895771"/> + <object class="NSMutableArray" key="children"> + <bool key="EncodedWithXMLCoder">YES</bool> + <reference ref="964663224"/> + <reference ref="364525587"/> + <reference ref="853091810"/> + <reference ref="350758430"/> + <reference ref="231072377"/> + <reference ref="800624537"/> + <reference ref="254749674"/> + <reference ref="657320705"/> + <reference ref="524851662"/> + <reference ref="331580392"/> + </object> + <reference key="parent" ref="583599991"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">22</int> + <reference key="object" ref="964663224"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">23</int> + <reference key="object" ref="364525587"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">24</int> + <reference key="object" ref="853091810"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">25</int> + <reference key="object" ref="350758430"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">26</int> + <reference key="object" ref="231072377"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">27</int> + <reference key="object" ref="800624537"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">28</int> + <reference key="object" ref="254749674"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">29</int> + <reference key="object" ref="657320705"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">30</int> + <reference key="object" ref="524851662"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">31</int> + <reference key="object" ref="331580392"/> + <reference key="parent" ref="70895771"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">32</int> + <reference key="object" ref="521189288"/> + <reference key="parent" ref="189033461"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">33</int> + <reference key="object" ref="426249328"/> + <reference key="parent" ref="983787914"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">34</int> + <reference key="object" ref="977735067"/> + <reference key="parent" ref="983787914"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">35</int> + <reference key="object" ref="459839028"/> + <reference key="parent" ref="983787914"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">36</int> + <reference key="object" ref="702566211"/> + <reference key="parent" ref="604699677"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">37</int> + <reference key="object" ref="699979333"/> + <reference key="parent" ref="604699677"/> + </object> + <object class="IBObjectRecord"> + <int key="objectID">38</int> + <reference key="object" ref="393370468"/> + <reference key="parent" ref="604699677"/> + </object> + </object> + </object> + <object class="NSMutableDictionary" key="flattenedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>-1.IBPluginDependency</string> + <string>-2.IBPluginDependency</string> + <string>-3.IBPluginDependency</string> + <string>1.IBEditorWindowLastContentRect</string> + <string>1.IBWindowTemplateEditedContentRect</string> + <string>1.ImportedFromIB2</string> + <string>1.windowTemplate.hasMaxSize</string> + <string>1.windowTemplate.hasMinSize</string> + <string>1.windowTemplate.maxSize</string> + <string>1.windowTemplate.minSize</string> + <string>10.IBPluginDependency</string> + <string>10.ImportedFromIB2</string> + <string>11.IBPluginDependency</string> + <string>11.ImportedFromIB2</string> + <string>12.IBPluginDependency</string> + <string>12.ImportedFromIB2</string> + <string>13.IBPluginDependency</string> + <string>13.ImportedFromIB2</string> + <string>14.IBPluginDependency</string> + <string>15.IBPluginDependency</string> + <string>16.IBPluginDependency</string> + <string>17.IBPluginDependency</string> + <string>18.IBPluginDependency</string> + <string>19.IBPluginDependency</string> + <string>2.IBPluginDependency</string> + <string>2.ImportedFromIB2</string> + <string>20.IBPluginDependency</string> + <string>21.IBEditorWindowLastContentRect</string> + <string>21.IBPluginDependency</string> + <string>22.IBPluginDependency</string> + <string>23.IBPluginDependency</string> + <string>24.IBPluginDependency</string> + <string>25.IBPluginDependency</string> + <string>26.IBPluginDependency</string> + <string>27.IBPluginDependency</string> + <string>28.IBPluginDependency</string> + <string>29.IBPluginDependency</string> + <string>3.IBPluginDependency</string> + <string>30.IBPluginDependency</string> + <string>31.IBPluginDependency</string> + <string>32.IBPluginDependency</string> + <string>33.IBPluginDependency</string> + <string>33.IBShouldRemoveOnLegacySave</string> + <string>34.IBPluginDependency</string> + <string>34.IBShouldRemoveOnLegacySave</string> + <string>35.IBPluginDependency</string> + <string>35.ImportedFromIB2</string> + <string>36.CustomClassName</string> + <string>36.IBPluginDependency</string> + <string>36.ImportedFromIB2</string> + <string>37.IBPluginDependency</string> + <string>37.IBShouldRemoveOnLegacySave</string> + <string>38.IBPluginDependency</string> + <string>38.IBShouldRemoveOnLegacySave</string> + <string>4.IBPluginDependency</string> + <string>5.IBPluginDependency</string> + <string>5.ImportedFromIB2</string> + <string>6.IBPluginDependency</string> + <string>6.ImportedFromIB2</string> + <string>7.CustomClassName</string> + <string>7.IBPluginDependency</string> + <string>7.ImportedFromIB2</string> + <string>8.IBAttributePlaceholdersKey</string> + <string>8.IBPluginDependency</string> + <string>9.IBPluginDependency</string> + <string>9.IBSegmentedControlTracker.RoundRobinState</string> + <string>9.IBSegmentedControlTracker.WasGrowing</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>{{226, 92}, {667, 416}}</string> + <string>{{226, 92}, {667, 416}}</string> + <reference ref="9"/> + <integer value="0" id="8"/> + <reference ref="9"/> + <string>{3.40282e+38, 3.40282e+38}</string> + <string>{560, 200}</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <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> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>{{705, 112}, {126, 173}}</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> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>SPEditSheetTextView</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <string>CMImageView</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="9"/> + <object class="NSMutableDictionary"> + <string key="NS.key.0">ToolTip</string> + <object class="IBToolTipAttribute" key="NS.object.0"> + <string key="name">ToolTip</string> + <reference key="object" ref="766971294"/> + <string key="toolTip">Choose a data format to display the current data by using QuickLook</string> + </object> + </object> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <string>com.apple.InterfaceBuilder.CocoaPlugin</string> + <reference ref="8"/> + <reference ref="9"/> + </object> + </object> + <object class="NSMutableDictionary" key="unlocalizedProperties"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="activeLocalization"/> + <object class="NSMutableDictionary" key="localizations"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + </object> + </object> + <nil key="sourceID"/> + <int key="maxID">39</int> + </object> + <object class="IBClassDescriber" key="IBDocument.Classes"> + <object class="NSMutableArray" key="referencedPartialClassDescriptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">CMImageView</string> + <string key="superclassName">NSImageView</string> + <object class="NSMutableDictionary" key="outlets"> + <string key="NS.key.0">delegate</string> + <string key="NS.object.0">id</string> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + <object class="IBPartialClassDescription"> + <string key="className">SPEditSheetTextView</string> + <string key="superclassName">NSTextView</string> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBUserSource</string> + <string key="minorKey"/> + </object> + </object> + </object> + <object class="NSMutableArray" key="referencedPartialClassDescriptionsV3.1+"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="IBPartialClassDescription"> + <string key="className">SPFieldEditor</string> + <string key="superclassName">NSWindow</string> + <object class="NSMutableDictionary" key="actions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>closeEditSheet:</string> + <string>dropImage:</string> + <string>openEditSheet:</string> + <string>quickLookFormatButton:</string> + <string>saveEditSheet:</string> + <string>segmentControllerChanged:</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="outlets"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>editImage</string> + <string>editSheetProgressBar</string> + <string>editSheetQuickLookButton</string> + <string>editSheetSegmentControl</string> + <string>editTextScrollView</string> + <string>editTextView</string> + <string>hexTextScrollView</string> + <string>hexTextView</string> + <string>sheetEditData</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> + </object> + </object> + <object class="IBClassDescriptionSource" key="sourceIdentifier"> + <string key="majorKey">IBDocumentRelativeSource</string> + <string key="minorKey">../../Source/SPFieldEditor.h</string> + </object> + </object> + </object> + </object> + <int key="IBDocument.localizationMode">0</int> + <nil key="IBDocument.LastKnownRelativeProjectPath"/> + <int key="IBDocument.defaultPropertyAccessControl">3</int> + </data> +</archive> diff --git a/Source/SPFieldEditor.h b/Source/SPFieldEditor.h index ff7cd5c6..1271b483 100644 --- a/Source/SPFieldEditor.h +++ b/Source/SPFieldEditor.h @@ -12,7 +12,6 @@ @interface SPFieldEditor : NSWindow { IBOutlet id editSheetProgressBar; - IBOutlet id editSheet; IBOutlet id editSheetSegmentControl; IBOutlet id editSheetQuickLookButton; IBOutlet id editImage; @@ -21,7 +20,7 @@ IBOutlet id editTextScrollView; IBOutlet id hexTextScrollView; - id editData; + id sheetEditData; NSString *stringValue; diff --git a/Source/SPFieldEditor.m b/Source/SPFieldEditor.m index 3a389f6e..e8ac915f 100644 --- a/Source/SPFieldEditor.m +++ b/Source/SPFieldEditor.m @@ -16,10 +16,18 @@ @implementation SPFieldEditor +// - (id) init +// { +// [self clean]; +// self = [super init]; +// return self; +// } - (void)initWithObject:(id)data usingEncoding:(NSStringEncoding)anEncoding isObjectBlob:(BOOL)isFieldBlob { + [self clean]; + // hide all views in editSheet [hexTextView setHidden:YES]; [hexTextScrollView setHidden:YES]; @@ -33,7 +41,9 @@ isBlob = isFieldBlob; - editData = [data retain]; + // sheetEditData = data; + sheetEditData = [data copy]; + NSLog(@"bbb:%@", sheetEditData); // hide all views in editSheet [hexTextView setHidden:YES]; @@ -48,15 +58,15 @@ [editSheetProgressBar startAnimation:self]; NSImage *image = nil; - if ( [editData isKindOfClass:[NSData class]] ) { - image = [[[NSImage alloc] initWithData:editData] autorelease]; + if ( [sheetEditData isKindOfClass:[NSData class]] ) { + image = [[[NSImage alloc] initWithData:sheetEditData] autorelease]; // Set hex view to "" - load on demand only [hexTextView setString:@""]; - stringValue = [[NSString alloc] initWithData:editData encoding:encoding]; + stringValue = [[NSString alloc] initWithData:sheetEditData encoding:encoding]; if (stringValue == nil) - stringValue = [[NSString alloc] initWithData:editData encoding:NSASCIIStringEncoding]; + stringValue = [[NSString alloc] initWithData:sheetEditData encoding:NSASCIIStringEncoding]; [hexTextView setHidden:NO]; [hexTextScrollView setHidden:NO]; @@ -65,7 +75,7 @@ [editTextScrollView setHidden:YES]; [editSheetSegmentControl setSelectedSegment:2]; } else { - stringValue = [editData retain]; + stringValue = [sheetEditData retain]; [hexTextView setString:@""]; @@ -91,6 +101,7 @@ } if (stringValue) { [editTextView setString:stringValue]; + NSLog(@"tv:%@", [editTextView class]); if(image == nil) { [hexTextView setHidden:YES]; @@ -126,17 +137,18 @@ - (void)clean { [hexTextView setString:@""]; - [editTextView setString:@""]; + [editTextView setString:@"AA"]; [editImage setImage:nil]; - if ( editData ) { - [editData release]; + if ( sheetEditData ) { + [sheetEditData release]; } } - (id)editData { - return editData; + NSLog(@"aa:%@", sheetEditData); + return [sheetEditData copy]; } @@ -158,17 +170,17 @@ [editSheetProgressBar startAnimation:self]; // free old data - if ( editData != nil ) { - [editData release]; + if ( sheetEditData != nil ) { + [sheetEditData release]; } // load new data/images - editData = [[NSData alloc] initWithContentsOfFile:fileName]; + sheetEditData = [[NSData alloc] initWithContentsOfFile:fileName]; - NSImage *image = [[NSImage alloc] initWithData:editData]; - contents = [[NSString alloc] initWithData:editData encoding:encoding]; + NSImage *image = [[NSImage alloc] initWithData:sheetEditData]; + contents = [[NSString alloc] initWithData:sheetEditData encoding:encoding]; if (contents == nil) - contents = [[NSString alloc] initWithData:editData encoding:NSASCIIStringEncoding]; + contents = [[NSString alloc] initWithData:sheetEditData encoding:NSASCIIStringEncoding]; // set the image preview, string contents and hex representation [editImage setImage:image]; @@ -181,7 +193,7 @@ // Load hex data only if user has already displayed them if(![[hexTextView string] isEqualToString:@""]) - [hexTextView setString:[editData dataToFormattedHexString]]; + [hexTextView setString:[sheetEditData dataToFormattedHexString]]; // If the image cell now contains a valid image, select the image view if (image) { @@ -222,7 +234,7 @@ [editImage setHidden:YES]; [hexTextView setHidden:YES]; [hexTextScrollView setHidden:YES]; - [editSheet makeFirstResponder:editTextView]; + // [self makeFirstResponder:editTextView]; break; case 1: // image [editTextView setHidden:YES]; @@ -230,12 +242,12 @@ [editImage setHidden:NO]; [hexTextView setHidden:YES]; [hexTextScrollView setHidden:YES]; - [editSheet makeFirstResponder:editImage]; + // [self makeFirstResponder:editImage]; break; case 2: // hex - load on demand - if([editData length] && [[hexTextView string] isEqualToString:@""]) { + if([sheetEditData length] && [[hexTextView string] isEqualToString:@""]) { [editSheetProgressBar startAnimation:self]; - [hexTextView setString:[editData dataToFormattedHexString]]; + [hexTextView setString:[sheetEditData dataToFormattedHexString]]; [editSheetProgressBar stopAnimation:self]; } [editTextView setHidden:YES]; @@ -243,7 +255,7 @@ [editImage setHidden:YES]; [hexTextView setHidden:NO]; [hexTextScrollView setHidden:NO]; - [editSheet makeFirstResponder:hexTextView]; + // [self makeFirstResponder:hexTextView]; break; } } @@ -263,12 +275,12 @@ // Write binary field types directly to the file //// || [editSheetBinaryButton state] == NSOnState - if ( [editData isKindOfClass:[NSData class]] ) { - [editData writeToFile:fileName atomically:YES]; + if ( [sheetEditData isKindOfClass:[NSData class]] ) { + [sheetEditData writeToFile:fileName atomically:YES]; // Write other field types' representations to the file via the current encoding } else { - [[editData description] writeToFile:fileName + [[sheetEditData description] writeToFile:fileName atomically:YES encoding:encoding error:NULL]; @@ -314,12 +326,12 @@ NSString *tmpFileName = [NSString stringWithFormat:@"/tmp/SequelProQuickLook.%@", type]; // if data are binary - if ( [editData isKindOfClass:[NSData class]] || !isText) { - [editData writeToFile:tmpFileName atomically:YES]; + if ( [sheetEditData isKindOfClass:[NSData class]] || !isText) { + [sheetEditData writeToFile:tmpFileName atomically:YES]; // write other field types' representations to the file via the current encoding } else { - [[editData description] writeToFile:tmpFileName + [[sheetEditData description] writeToFile:tmpFileName atomically:YES encoding:encoding error:NULL]; @@ -406,21 +418,21 @@ image = [[[NSImage alloc] initWithPasteboard:[NSPasteboard generalPasteboard]] autorelease]; if (image) { - if (nil != editData) [editData release]; + if (nil != sheetEditData) [sheetEditData release]; [editImage setImage:image]; - editData = [[NSData alloc] initWithData:[image TIFFRepresentationUsingCompression:NSTIFFCompressionLZW factor:1]]; + sheetEditData = [[NSData alloc] initWithData:[image TIFFRepresentationUsingCompression:NSTIFFCompressionLZW factor:1]]; - NSString *contents = [[NSString alloc] initWithData:editData encoding:encoding]; + NSString *contents = [[NSString alloc] initWithData:sheetEditData encoding:encoding]; if (contents == nil) - contents = [[NSString alloc] initWithData:editData encoding:NSASCIIStringEncoding]; + contents = [[NSString alloc] initWithData:sheetEditData encoding:NSASCIIStringEncoding]; // Set the string contents and hex representation if(contents) [editTextView setString:contents]; if(![[hexTextView string] isEqualToString:@""]) - [hexTextView setString:[editData dataToFormattedHexString]]; + [hexTextView setString:[sheetEditData dataToFormattedHexString]]; [contents release]; @@ -437,11 +449,11 @@ editSheetWillBeInitialized = YES; - if (nil != editData) [editData release]; + if (nil != sheetEditData) [sheetEditData release]; // If the image was not processed, set a blank string as the contents of the edit and hex views. if ( data == nil ) { - editData = [[NSData alloc] init]; + sheetEditData = [[NSData alloc] init]; [editTextView setString:@""]; [hexTextView setString:@""]; editSheetWillBeInitialized = NO; @@ -449,7 +461,7 @@ } // Process the provided image - editData = [[NSData alloc] initWithData:data]; + sheetEditData = [[NSData alloc] initWithData:data]; NSString *contents = [[NSString alloc] initWithData:data encoding:encoding]; if (contents == nil) contents = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]; @@ -458,7 +470,7 @@ if(contents) [editTextView setString:contents]; if(![[hexTextView string] isEqualToString:@""]) - [hexTextView setString:[editData dataToFormattedHexString]]; + [hexTextView setString:[sheetEditData dataToFormattedHexString]]; [contents release]; editSheetWillBeInitialized = NO; @@ -470,8 +482,8 @@ // If the image was deleted, set a blank string as the contents of the edit and hex views. // The actual dropped image processing is handled by processUpdatedImageData:. if ( [editImage image] == nil ) { - if (nil != editData) [editData release]; - editData = [[NSData alloc] init]; + if (nil != sheetEditData) [sheetEditData release]; + sheetEditData = [[NSData alloc] init]; [editTextView setString:@""]; [hexTextView setString:@""]; return; @@ -493,12 +505,12 @@ [hexTextView setString:@""]; // free old data - if ( editData != nil ) { - [editData release]; + if ( sheetEditData != nil ) { + [sheetEditData release]; } // set edit data to text - editData = [[editTextView string] retain]; + sheetEditData = [[editTextView string] retain]; } diff --git a/sequel-pro.xcodeproj/project.pbxproj b/sequel-pro.xcodeproj/project.pbxproj index 225cbcbb..5746922d 100644 --- a/sequel-pro.xcodeproj/project.pbxproj +++ b/sequel-pro.xcodeproj/project.pbxproj @@ -161,6 +161,7 @@ BC2C8E220FA8C2DB008468C7 /* sequel-pro-mysql-help-template.html in Resources */ = {isa = PBXBuildFile; fileRef = BC2C8E210FA8C2DB008468C7 /* sequel-pro-mysql-help-template.html */; }; BC8C8532100E0A8000D7A129 /* SPTableView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC8C8531100E0A8000D7A129 /* SPTableView.m */; }; BC99296E0FF3D001008B79AB /* SPFieldEditor.m in Sources */ = {isa = PBXBuildFile; fileRef = BC99296D0FF3D001008B79AB /* SPFieldEditor.m */; }; + BCA6F631100FA7D700E80253 /* FieldEditorSheet.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCA6F62F100FA7D700E80253 /* FieldEditorSheet.xib */; }; BCD0AD490FBBFC340066EA5C /* SPSQLTokenizer.l in Sources */ = {isa = PBXBuildFile; fileRef = BCD0AD480FBBFC340066EA5C /* SPSQLTokenizer.l */; }; /* End PBXBuildFile section */ @@ -458,6 +459,7 @@ BC8C8531100E0A8000D7A129 /* SPTableView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPTableView.m; sourceTree = "<group>"; }; BC99296C0FF3D001008B79AB /* SPFieldEditor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPFieldEditor.h; sourceTree = "<group>"; }; BC99296D0FF3D001008B79AB /* SPFieldEditor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SPFieldEditor.m; sourceTree = "<group>"; }; + BCA6F630100FA7D700E80253 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/FieldEditorSheet.xib; sourceTree = "<group>"; }; BCD0AD480FBBFC340066EA5C /* SPSQLTokenizer.l */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.lex; path = SPSQLTokenizer.l; sourceTree = "<group>"; }; BCD0AD4A0FBBFC480066EA5C /* SPSQLTokenizer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SPSQLTokenizer.h; sourceTree = "<group>"; }; /* End PBXFileReference section */ @@ -845,6 +847,7 @@ 17E642050EF020A3001BC333 /* Interfaces */ = { isa = PBXGroup; children = ( + BCA6F62F100FA7D700E80253 /* FieldEditorSheet.xib */, 17E642060EF020CB001BC333 /* DBView.xib */, B52460D90F8EF93B00171639 /* Console.xib */, 1761FD460EF03A6F00331368 /* MainMenu.xib */, @@ -1164,6 +1167,7 @@ B5538AB00FF251EE00219803 /* button_pane_show_icon.tif in Resources */, 5822CAE110011C8000DCC3D6 /* ConnectionView.xib in Resources */, BC1E55C4100DC92200AAE9F0 /* table-view-small-square.tiff in Resources */, + BCA6F631100FA7D700E80253 /* FieldEditorSheet.xib in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1400,6 +1404,14 @@ name = ExportDialog.xib; sourceTree = "<group>"; }; + BCA6F62F100FA7D700E80253 /* FieldEditorSheet.xib */ = { + isa = PBXVariantGroup; + children = ( + BCA6F630100FA7D700E80253 /* English */, + ); + name = FieldEditorSheet.xib; + sourceTree = "<group>"; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ |