mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
History/CommitView: Use a nice-looking splitview divider
This uses images based on those in Mail.app to create a nice looking splitview (Hush, don't tell Apple!)
This commit is contained in:
@@ -22,6 +22,9 @@
|
||||
93CB42C20EAB7B2200530609 /* PBGitDefaults.m in Sources */ = {isa = PBXBuildFile; fileRef = 93CB42C10EAB7B2200530609 /* PBGitDefaults.m */; };
|
||||
93F7857F0EA3ABF100C1F443 /* PBCommitMessageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 93F7857E0EA3ABF100C1F443 /* PBCommitMessageView.m */; };
|
||||
D26DC6450E782C9000C777B2 /* gitx.icns in Resources */ = {isa = PBXBuildFile; fileRef = D26DC6440E782C9000C777B2 /* gitx.icns */; };
|
||||
F50A411F0EBB874C00208746 /* mainSplitterBar.tiff in Resources */ = {isa = PBXBuildFile; fileRef = F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */; };
|
||||
F50A41200EBB874C00208746 /* mainSplitterDimple.tiff in Resources */ = {isa = PBXBuildFile; fileRef = F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */; };
|
||||
F50A41230EBB875D00208746 /* PBNiceSplitView.m in Sources */ = {isa = PBXBuildFile; fileRef = F50A41220EBB875D00208746 /* PBNiceSplitView.m */; };
|
||||
F50FE0E30E07BE9600854FCD /* PBGitRevisionCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F50FE0E20E07BE9600854FCD /* PBGitRevisionCell.m */; };
|
||||
F513085B0E0740F2000C8BCD /* PBQLOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = F513085A0E0740F2000C8BCD /* PBQLOutlineView.m */; };
|
||||
F5140DC90E8A8EB20091E9F3 /* RoundedRectangle.m in Sources */ = {isa = PBXBuildFile; fileRef = F5140DC80E8A8EB20091E9F3 /* RoundedRectangle.m */; };
|
||||
@@ -122,6 +125,10 @@
|
||||
93F7857E0EA3ABF100C1F443 /* PBCommitMessageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBCommitMessageView.m; sourceTree = "<group>"; };
|
||||
93FCCBA80EA8AF450061B02B /* PBGitConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitConfig.m; sourceTree = "<group>"; };
|
||||
D26DC6440E782C9000C777B2 /* gitx.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = gitx.icns; sourceTree = "<group>"; };
|
||||
F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = mainSplitterBar.tiff; path = Images/mainSplitterBar.tiff; sourceTree = "<group>"; };
|
||||
F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = mainSplitterDimple.tiff; path = Images/mainSplitterDimple.tiff; sourceTree = "<group>"; };
|
||||
F50A41210EBB875D00208746 /* PBNiceSplitView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBNiceSplitView.h; sourceTree = "<group>"; };
|
||||
F50A41220EBB875D00208746 /* PBNiceSplitView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBNiceSplitView.m; sourceTree = "<group>"; };
|
||||
F50FE0E10E07BE9600854FCD /* PBGitRevisionCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBGitRevisionCell.h; sourceTree = "<group>"; };
|
||||
F50FE0E20E07BE9600854FCD /* PBGitRevisionCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitRevisionCell.m; sourceTree = "<group>"; };
|
||||
F51308590E0740F2000C8BCD /* PBQLOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBQLOutlineView.h; sourceTree = "<group>"; };
|
||||
@@ -295,6 +302,7 @@
|
||||
29B97317FDCFA39411CA2CEA /* Resources */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F50A41130EBB872D00208746 /* Widgets */,
|
||||
D26DC6440E782C9000C777B2 /* gitx.icns */,
|
||||
8D1107310486CEB800E47090 /* Info.plist */,
|
||||
089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
|
||||
@@ -334,6 +342,15 @@
|
||||
name = cli;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F50A41130EBB872D00208746 /* Widgets */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */,
|
||||
F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */,
|
||||
);
|
||||
name = Widgets;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
F56174540E05887E001DCD79 /* Git */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
@@ -391,6 +408,8 @@
|
||||
F5140DC80E8A8EB20091E9F3 /* RoundedRectangle.m */,
|
||||
F56244070E9684B0002B6C44 /* PBUnsortableTableHeader.h */,
|
||||
F56244080E9684B0002B6C44 /* PBUnsortableTableHeader.m */,
|
||||
F50A41210EBB875D00208746 /* PBNiceSplitView.h */,
|
||||
F50A41220EBB875D00208746 /* PBNiceSplitView.m */,
|
||||
);
|
||||
name = Aux;
|
||||
sourceTree = "<group>";
|
||||
@@ -553,6 +572,8 @@
|
||||
F5E92A230E88569500056E75 /* new_file.png in Resources */,
|
||||
F57240BB0E9678EA00D8EE66 /* deleted_file.png in Resources */,
|
||||
F5E424110EA3E4D60046E362 /* PBDiffWindow.xib in Resources */,
|
||||
F50A411F0EBB874C00208746 /* mainSplitterBar.tiff in Resources */,
|
||||
F50A41200EBB874C00208746 /* mainSplitterDimple.tiff in Resources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
@@ -621,6 +642,7 @@
|
||||
F5E424150EA3E4E10046E362 /* PBDiffWindowController.m in Sources */,
|
||||
F5E424180EA3E4EB0046E362 /* PBWebDiffController.m in Sources */,
|
||||
F5FE6C030EB13BC900F30D12 /* PBServicesController.m in Sources */,
|
||||
F50A41230EBB875D00208746 /* PBNiceSplitView.m in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+12
-2
@@ -8,7 +8,7 @@
|
||||
<string key="IBDocument.HIToolboxVersion">352.00</string>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="186"/>
|
||||
<integer value="1" id="9"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
@@ -114,7 +114,7 @@
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="12" id="777559147"/>
|
||||
<reference ref="777559147"/>
|
||||
<integer value="1" id="9"/>
|
||||
<reference ref="9"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
@@ -1424,6 +1424,7 @@
|
||||
<string>133.IBPluginDependency</string>
|
||||
<string>163.IBPluginDependency</string>
|
||||
<string>164.IBPluginDependency</string>
|
||||
<string>186.CustomClassName</string>
|
||||
<string>2.IBPluginDependency</string>
|
||||
<string>217.IBPluginDependency</string>
|
||||
<string>225.IBEditorWindowLastContentRect</string>
|
||||
@@ -1467,6 +1468,7 @@
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>PBNiceSplitView</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>{{341, 837}, {616, 169}}</string>
|
||||
@@ -1589,6 +1591,14 @@
|
||||
<string key="minorKey">PBIconAndTextCell.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PBNiceSplitView</string>
|
||||
<string key="superclassName">NSSplitView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">PBNiceSplitView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PBViewController</string>
|
||||
<string key="superclassName">NSViewController</string>
|
||||
|
||||
+72
-39
@@ -3,12 +3,12 @@
|
||||
<data>
|
||||
<int key="IBDocument.SystemTarget">1050</int>
|
||||
<string key="IBDocument.SystemVersion">9F33</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">672</string>
|
||||
<string key="IBDocument.InterfaceBuilderVersion">670</string>
|
||||
<string key="IBDocument.AppKitVersion">949.34</string>
|
||||
<string key="IBDocument.HIToolboxVersion">352.00</string>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="48"/>
|
||||
<integer value="3"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
@@ -449,27 +449,27 @@
|
||||
<object class="NSTableView" id="254268962">
|
||||
<reference key="NSNextResponder" ref="546023969"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrameSize">{835, 176}</string>
|
||||
<string key="NSFrameSize">{852, 194}</string>
|
||||
<reference key="NSSuperview" ref="546023969"/>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="NSTableHeaderView" key="NSHeaderView" id="942510576">
|
||||
<reference key="NSNextResponder" ref="906093892"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrameSize">{835, 17}</string>
|
||||
<string key="NSFrameSize">{852, 17}</string>
|
||||
<reference key="NSSuperview" ref="906093892"/>
|
||||
<reference key="NSTableView" ref="254268962"/>
|
||||
</object>
|
||||
<object class="_NSCornerView" key="NSCornerView" id="806470424">
|
||||
<reference key="NSNextResponder" ref="663765878"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{836, 0}, {16, 17}}</string>
|
||||
<int key="NSvFlags">-2147483392</int>
|
||||
<string key="NSFrame">{{-26, 0}, {16, 17}}</string>
|
||||
<reference key="NSSuperview" ref="663765878"/>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="NSTableColumns">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSTableColumn" id="1025472344">
|
||||
<string key="NSIdentifier">subject</string>
|
||||
<double key="NSWidth">4.920000e+02</double>
|
||||
<double key="NSWidth">5.090000e+02</double>
|
||||
<double key="NSMinWidth">4.000000e+01</double>
|
||||
<double key="NSMaxWidth">1.000000e+03</double>
|
||||
<object class="NSTableHeaderCell" key="NSHeaderCell">
|
||||
@@ -590,17 +590,17 @@
|
||||
<bool key="NSAllowsTypeSelect">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{1, 17}, {835, 176}}</string>
|
||||
<string key="NSFrame">{{0, 17}, {852, 194}}</string>
|
||||
<reference key="NSSuperview" ref="663765878"/>
|
||||
<reference key="NSNextKeyView" ref="254268962"/>
|
||||
<reference key="NSDocView" ref="254268962"/>
|
||||
<reference key="NSBGColor" ref="827363147"/>
|
||||
<int key="NScvFlags">4</int>
|
||||
<int key="NScvFlags">2</int>
|
||||
</object>
|
||||
<object class="NSScroller" id="152625445">
|
||||
<reference key="NSNextResponder" ref="663765878"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{836, 17}, {15, 176}}</string>
|
||||
<int key="NSvFlags">-2147483392</int>
|
||||
<string key="NSFrame">{{837, 17}, {15, 179}}</string>
|
||||
<reference key="NSSuperview" ref="663765878"/>
|
||||
<reference key="NSTarget" ref="663765878"/>
|
||||
<string key="NSAction">_doScroller:</string>
|
||||
@@ -609,8 +609,8 @@
|
||||
</object>
|
||||
<object class="NSScroller" id="452331733">
|
||||
<reference key="NSNextResponder" ref="663765878"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{1, 193}, {835, 15}}</string>
|
||||
<int key="NSvFlags">-2147483392</int>
|
||||
<string key="NSFrame">{{0, 196}, {837, 15}}</string>
|
||||
<reference key="NSSuperview" ref="663765878"/>
|
||||
<int key="NSsFlags">1</int>
|
||||
<reference key="NSTarget" ref="663765878"/>
|
||||
@@ -624,7 +624,7 @@
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="942510576"/>
|
||||
</object>
|
||||
<string key="NSFrame">{{1, 0}, {835, 17}}</string>
|
||||
<string key="NSFrameSize">{852, 17}</string>
|
||||
<reference key="NSSuperview" ref="663765878"/>
|
||||
<reference key="NSNextKeyView" ref="942510576"/>
|
||||
<reference key="NSDocView" ref="942510576"/>
|
||||
@@ -633,10 +633,10 @@
|
||||
</object>
|
||||
<reference ref="806470424"/>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 209}</string>
|
||||
<string key="NSFrameSize">{852, 211}</string>
|
||||
<reference key="NSSuperview" ref="202620420"/>
|
||||
<reference key="NSNextKeyView" ref="546023969"/>
|
||||
<int key="NSsFlags">50</int>
|
||||
<int key="NSsFlags">560</int>
|
||||
<reference key="NSVScroller" ref="152625445"/>
|
||||
<reference key="NSHScroller" ref="452331733"/>
|
||||
<reference key="NSContentView" ref="546023969"/>
|
||||
@@ -647,14 +647,14 @@
|
||||
<object class="NSTabView" id="135073984">
|
||||
<reference key="NSNextResponder" ref="202620420"/>
|
||||
<int key="NSvFlags">18</int>
|
||||
<string key="NSFrame">{{0, 210}, {852, 186}}</string>
|
||||
<string key="NSFrame">{{0, 212}, {852, 186}}</string>
|
||||
<reference key="NSSuperview" ref="202620420"/>
|
||||
<object class="NSMutableArray" key="NSTabViewItems">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSTabViewItem" id="375889551">
|
||||
<string key="NSIdentifier">1</string>
|
||||
<object class="NSView" key="NSView" id="859052736">
|
||||
<reference key="NSNextResponder" ref="135073984"/>
|
||||
<nil key="NSNextResponder"/>
|
||||
<int key="NSvFlags">274</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
@@ -708,7 +708,6 @@
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 0}</string>
|
||||
<reference key="NSSuperview" ref="135073984"/>
|
||||
</object>
|
||||
<string key="NSLabel">Details</string>
|
||||
<object class="NSColor" key="NSColor" id="457244339">
|
||||
@@ -739,7 +738,7 @@
|
||||
<object class="NSTextView" id="239018083">
|
||||
<reference key="NSNextResponder" ref="948090592"/>
|
||||
<int key="NSvFlags">2322</int>
|
||||
<string key="NSFrameSize">{835, 70}</string>
|
||||
<string key="NSFrameSize">{835, 37}</string>
|
||||
<reference key="NSSuperview" ref="948090592"/>
|
||||
<object class="NSTextContainer" key="NSTextContainer" id="53511606">
|
||||
<object class="NSLayoutManager" key="NSLayoutManager">
|
||||
@@ -930,7 +929,7 @@
|
||||
<nil key="NSDelegate"/>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{1, 1}, {835, 218}}</string>
|
||||
<string key="NSFrame">{{1, 1}, {835, 185}}</string>
|
||||
<reference key="NSSuperview" ref="670264682"/>
|
||||
<reference key="NSNextKeyView" ref="239018083"/>
|
||||
<reference key="NSDocView" ref="239018083"/>
|
||||
@@ -944,7 +943,7 @@
|
||||
<object class="NSScroller" id="722857290">
|
||||
<reference key="NSNextResponder" ref="670264682"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{836, 1}, {15, 218}}</string>
|
||||
<string key="NSFrame">{{836, 1}, {15, 185}}</string>
|
||||
<reference key="NSSuperview" ref="670264682"/>
|
||||
<reference key="NSTarget" ref="670264682"/>
|
||||
<string key="NSAction">_doScroller:</string>
|
||||
@@ -962,7 +961,7 @@
|
||||
<double key="NSPercent">9.456522e-01</double>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 220}</string>
|
||||
<string key="NSFrameSize">{852, 187}</string>
|
||||
<reference key="NSSuperview" ref="624894365"/>
|
||||
<reference key="NSNextKeyView" ref="948090592"/>
|
||||
<int key="NSsFlags">18</int>
|
||||
@@ -971,7 +970,7 @@
|
||||
<reference key="NSContentView" ref="948090592"/>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 220}</string>
|
||||
<string key="NSFrameSize">{852, 186}</string>
|
||||
</object>
|
||||
<string key="NSLabel">Raw</string>
|
||||
<reference key="NSColor" ref="457244339"/>
|
||||
@@ -980,7 +979,7 @@
|
||||
<object class="NSTabViewItem" id="529992882">
|
||||
<string key="NSIdentifier">Item 2</string>
|
||||
<object class="NSView" key="NSView" id="657042048">
|
||||
<nil key="NSNextResponder"/>
|
||||
<reference key="NSNextResponder" ref="135073984"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
@@ -1002,7 +1001,7 @@
|
||||
<object class="NSOutlineView" id="216928480">
|
||||
<reference key="NSNextResponder" ref="859661469"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrameSize">{191, 227}</string>
|
||||
<string key="NSFrameSize">{191, 186}</string>
|
||||
<reference key="NSSuperview" ref="859661469"/>
|
||||
<bool key="NSEnabled">YES</bool>
|
||||
<object class="_NSCornerView" key="NSCornerView">
|
||||
@@ -1053,7 +1052,7 @@
|
||||
<bool key="NSAllowsTypeSelect">YES</bool>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{1, 1}, {191, 227}}</string>
|
||||
<string key="NSFrame">{{1, 1}, {191, 186}}</string>
|
||||
<reference key="NSSuperview" ref="776605770"/>
|
||||
<reference key="NSNextKeyView" ref="216928480"/>
|
||||
<reference key="NSDocView" ref="216928480"/>
|
||||
@@ -1063,7 +1062,7 @@
|
||||
<object class="NSScroller" id="692013536">
|
||||
<reference key="NSNextResponder" ref="776605770"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{192, 1}, {15, 227}}</string>
|
||||
<string key="NSFrame">{{192, 1}, {15, 186}}</string>
|
||||
<reference key="NSSuperview" ref="776605770"/>
|
||||
<reference key="NSTarget" ref="776605770"/>
|
||||
<string key="NSAction">_doScroller:</string>
|
||||
@@ -1081,7 +1080,7 @@
|
||||
<double key="NSPercent">9.980119e-01</double>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{208, 229}</string>
|
||||
<string key="NSFrameSize">{208, 188}</string>
|
||||
<reference key="NSSuperview" ref="626906425"/>
|
||||
<reference key="NSNextKeyView" ref="859661469"/>
|
||||
<int key="NSsFlags">18</int>
|
||||
@@ -1103,7 +1102,30 @@
|
||||
<object class="NSTextView" id="75600241">
|
||||
<reference key="NSNextResponder" ref="321980917"/>
|
||||
<int key="NSvFlags">2322</int>
|
||||
<string key="NSFrameSize">{543, 112}</string>
|
||||
<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">{543, 71}</string>
|
||||
<reference key="NSSuperview" ref="321980917"/>
|
||||
<object class="NSTextContainer" key="NSTextContainer" id="480935218">
|
||||
<object class="NSLayoutManager" key="NSLayoutManager">
|
||||
@@ -1164,7 +1186,7 @@
|
||||
<nil key="NSDelegate"/>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{1, 1}, {626, 227}}</string>
|
||||
<string key="NSFrame">{{1, 1}, {626, 186}}</string>
|
||||
<reference key="NSSuperview" ref="630571485"/>
|
||||
<reference key="NSNextKeyView" ref="75600241"/>
|
||||
<reference key="NSDocView" ref="75600241"/>
|
||||
@@ -1175,7 +1197,7 @@
|
||||
<object class="NSScroller" id="802032705">
|
||||
<reference key="NSNextResponder" ref="630571485"/>
|
||||
<int key="NSvFlags">256</int>
|
||||
<string key="NSFrame">{{627, 1}, {15, 227}}</string>
|
||||
<string key="NSFrame">{{627, 1}, {15, 186}}</string>
|
||||
<reference key="NSSuperview" ref="630571485"/>
|
||||
<reference key="NSTarget" ref="630571485"/>
|
||||
<string key="NSAction">_doScroller:</string>
|
||||
@@ -1193,7 +1215,7 @@
|
||||
<double key="NSPercent">9.456522e-01</double>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{209, 0}, {643, 229}}</string>
|
||||
<string key="NSFrame">{{209, 0}, {643, 188}}</string>
|
||||
<reference key="NSSuperview" ref="626906425"/>
|
||||
<reference key="NSNextKeyView" ref="321980917"/>
|
||||
<int key="NSsFlags">18</int>
|
||||
@@ -1202,31 +1224,32 @@
|
||||
<reference key="NSContentView" ref="321980917"/>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 229}</string>
|
||||
<string key="NSFrameSize">{852, 188}</string>
|
||||
<reference key="NSSuperview" ref="657042048"/>
|
||||
<bool key="NSIsVertical">YES</bool>
|
||||
<int key="NSDividerStyle">2</int>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrameSize">{852, 229}</string>
|
||||
<string key="NSFrameSize">{852, 186}</string>
|
||||
<reference key="NSSuperview" ref="135073984"/>
|
||||
</object>
|
||||
<string key="NSLabel">Tree</string>
|
||||
<reference key="NSColor" ref="457244339"/>
|
||||
<reference key="NSTabView" ref="135073984"/>
|
||||
</object>
|
||||
</object>
|
||||
<reference key="NSSelectedTabViewItem" ref="375889551"/>
|
||||
<reference key="NSSelectedTabViewItem" ref="529992882"/>
|
||||
<reference key="NSFont" ref="924107556"/>
|
||||
<int key="NSTvFlags">6</int>
|
||||
<bool key="NSAllowTruncatedLabels">YES</bool>
|
||||
<bool key="NSDrawsBackground">YES</bool>
|
||||
<object class="NSMutableArray" key="NSSubviews">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<reference ref="859052736"/>
|
||||
<reference ref="657042048"/>
|
||||
</object>
|
||||
</object>
|
||||
</object>
|
||||
<string key="NSFrame">{{0, 35}, {852, 396}}</string>
|
||||
<string key="NSFrame">{{0, 35}, {852, 398}}</string>
|
||||
<reference key="NSSuperview" ref="319362431"/>
|
||||
<int key="NSDividerStyle">2</int>
|
||||
</object>
|
||||
@@ -2378,6 +2401,7 @@
|
||||
<string>18.IBPluginDependency</string>
|
||||
<string>19.IBPluginDependency</string>
|
||||
<string>190.IBPluginDependency</string>
|
||||
<string>2.CustomClassName</string>
|
||||
<string>2.IBEditorWindowLastContentRect</string>
|
||||
<string>2.IBPluginDependency</string>
|
||||
<string>2.ImportedFromIB2</string>
|
||||
@@ -2457,6 +2481,7 @@
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>PBNiceSplitView</string>
|
||||
<string>{{312, 577}, {852, 384}}</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<reference ref="9"/>
|
||||
@@ -2512,7 +2537,7 @@
|
||||
</object>
|
||||
</object>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>{{1359, 484}, {852, 432}}</string>
|
||||
<string>{{387, 484}, {852, 432}}</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
|
||||
@@ -2651,6 +2676,14 @@
|
||||
<string key="minorKey">PBGitRevisionCell.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PBNiceSplitView</string>
|
||||
<string key="superclassName">NSSplitView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">PBNiceSplitView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
<string key="className">PBQLOutlineView</string>
|
||||
<string key="superclassName">NSOutlineView</string>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// PBNiceSplitView.h
|
||||
// GitX
|
||||
//
|
||||
// Created by Pieter de Bie on 31-10-08.
|
||||
// Copyright 2008 Pieter de Bie. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface PBNiceSplitView : NSSplitView {
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// PBNiceSplitView.m
|
||||
// GitX
|
||||
//
|
||||
// Created by Pieter de Bie on 31-10-08.
|
||||
// Copyright 2008 Pieter de Bie. All rights reserved.
|
||||
//
|
||||
|
||||
#import "PBNiceSplitView.h"
|
||||
|
||||
static NSImage *bar;
|
||||
static NSImage *grip;
|
||||
|
||||
@implementation PBNiceSplitView
|
||||
|
||||
+(void) initialize
|
||||
{
|
||||
NSString *barPath = [[NSBundle mainBundle] pathForResource:@"mainSplitterBar" ofType:@"tiff"];
|
||||
bar = [[NSImage alloc] initWithContentsOfFile: barPath];
|
||||
[bar setFlipped: YES];
|
||||
|
||||
NSString *gripPath = [[NSBundle mainBundle] pathForResource:@"mainSplitterDimple" ofType:@"tiff"];
|
||||
grip = [[NSImage alloc] initWithContentsOfFile: gripPath];
|
||||
[grip setFlipped: YES];
|
||||
}
|
||||
|
||||
- (void)drawDividerInRect:(NSRect)aRect
|
||||
{
|
||||
// Draw bar and grip onto the canvas
|
||||
NSRect gripRect = aRect;
|
||||
gripRect.origin.x = (NSMidX(aRect) - ([grip size].width/2));
|
||||
gripRect.size.width = 8;
|
||||
|
||||
[self lockFocus];
|
||||
[bar drawInRect:aRect fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
|
||||
[grip drawInRect:gripRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
|
||||
[self unlockFocus];
|
||||
}
|
||||
|
||||
- (CGFloat)dividerThickness
|
||||
{
|
||||
return 10.0;
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user