Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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!)
  • Loading branch information...
commit 77ad37a76a82b241e8310228be8d3b310ce7ee22 1 parent 1d19bd6
Pieter de Bie authored October 31, 2008
22  GitX.xcodeproj/project.pbxproj
@@ -22,6 +22,9 @@
22 22
 		93CB42C20EAB7B2200530609 /* PBGitDefaults.m in Sources */ = {isa = PBXBuildFile; fileRef = 93CB42C10EAB7B2200530609 /* PBGitDefaults.m */; };
23 23
 		93F7857F0EA3ABF100C1F443 /* PBCommitMessageView.m in Sources */ = {isa = PBXBuildFile; fileRef = 93F7857E0EA3ABF100C1F443 /* PBCommitMessageView.m */; };
24 24
 		D26DC6450E782C9000C777B2 /* gitx.icns in Resources */ = {isa = PBXBuildFile; fileRef = D26DC6440E782C9000C777B2 /* gitx.icns */; };
  25
+		F50A411F0EBB874C00208746 /* mainSplitterBar.tiff in Resources */ = {isa = PBXBuildFile; fileRef = F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */; };
  26
+		F50A41200EBB874C00208746 /* mainSplitterDimple.tiff in Resources */ = {isa = PBXBuildFile; fileRef = F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */; };
  27
+		F50A41230EBB875D00208746 /* PBNiceSplitView.m in Sources */ = {isa = PBXBuildFile; fileRef = F50A41220EBB875D00208746 /* PBNiceSplitView.m */; };
25 28
 		F50FE0E30E07BE9600854FCD /* PBGitRevisionCell.m in Sources */ = {isa = PBXBuildFile; fileRef = F50FE0E20E07BE9600854FCD /* PBGitRevisionCell.m */; };
26 29
 		F513085B0E0740F2000C8BCD /* PBQLOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = F513085A0E0740F2000C8BCD /* PBQLOutlineView.m */; };
27 30
 		F5140DC90E8A8EB20091E9F3 /* RoundedRectangle.m in Sources */ = {isa = PBXBuildFile; fileRef = F5140DC80E8A8EB20091E9F3 /* RoundedRectangle.m */; };
@@ -122,6 +125,10 @@
122 125
 		93F7857E0EA3ABF100C1F443 /* PBCommitMessageView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBCommitMessageView.m; sourceTree = "<group>"; };
123 126
 		93FCCBA80EA8AF450061B02B /* PBGitConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitConfig.m; sourceTree = "<group>"; };
124 127
 		D26DC6440E782C9000C777B2 /* gitx.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = gitx.icns; sourceTree = "<group>"; };
  128
+		F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = mainSplitterBar.tiff; path = Images/mainSplitterBar.tiff; sourceTree = "<group>"; };
  129
+		F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */ = {isa = PBXFileReference; lastKnownFileType = image.tiff; name = mainSplitterDimple.tiff; path = Images/mainSplitterDimple.tiff; sourceTree = "<group>"; };
  130
+		F50A41210EBB875D00208746 /* PBNiceSplitView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBNiceSplitView.h; sourceTree = "<group>"; };
  131
+		F50A41220EBB875D00208746 /* PBNiceSplitView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBNiceSplitView.m; sourceTree = "<group>"; };
125 132
 		F50FE0E10E07BE9600854FCD /* PBGitRevisionCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBGitRevisionCell.h; sourceTree = "<group>"; };
126 133
 		F50FE0E20E07BE9600854FCD /* PBGitRevisionCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PBGitRevisionCell.m; sourceTree = "<group>"; };
127 134
 		F51308590E0740F2000C8BCD /* PBQLOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PBQLOutlineView.h; sourceTree = "<group>"; };
@@ -295,6 +302,7 @@
295 302
 		29B97317FDCFA39411CA2CEA /* Resources */ = {
296 303
 			isa = PBXGroup;
297 304
 			children = (
  305
+				F50A41130EBB872D00208746 /* Widgets */,
298 306
 				D26DC6440E782C9000C777B2 /* gitx.icns */,
299 307
 				8D1107310486CEB800E47090 /* Info.plist */,
300 308
 				089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
@@ -334,6 +342,15 @@
334 342
 			name = cli;
335 343
 			sourceTree = "<group>";
336 344
 		};
  345
+		F50A41130EBB872D00208746 /* Widgets */ = {
  346
+			isa = PBXGroup;
  347
+			children = (
  348
+				F50A411D0EBB874C00208746 /* mainSplitterBar.tiff */,
  349
+				F50A411E0EBB874C00208746 /* mainSplitterDimple.tiff */,
  350
+			);
  351
+			name = Widgets;
  352
+			sourceTree = "<group>";
  353
+		};
337 354
 		F56174540E05887E001DCD79 /* Git */ = {
338 355
 			isa = PBXGroup;
339 356
 			children = (
@@ -391,6 +408,8 @@
391 408
 				F5140DC80E8A8EB20091E9F3 /* RoundedRectangle.m */,
392 409
 				F56244070E9684B0002B6C44 /* PBUnsortableTableHeader.h */,
393 410
 				F56244080E9684B0002B6C44 /* PBUnsortableTableHeader.m */,
  411
+				F50A41210EBB875D00208746 /* PBNiceSplitView.h */,
  412
+				F50A41220EBB875D00208746 /* PBNiceSplitView.m */,
394 413
 			);
395 414
 			name = Aux;
396 415
 			sourceTree = "<group>";
@@ -553,6 +572,8 @@
553 572
 				F5E92A230E88569500056E75 /* new_file.png in Resources */,
554 573
 				F57240BB0E9678EA00D8EE66 /* deleted_file.png in Resources */,
555 574
 				F5E424110EA3E4D60046E362 /* PBDiffWindow.xib in Resources */,
  575
+				F50A411F0EBB874C00208746 /* mainSplitterBar.tiff in Resources */,
  576
+				F50A41200EBB874C00208746 /* mainSplitterDimple.tiff in Resources */,
556 577
 			);
557 578
 			runOnlyForDeploymentPostprocessing = 0;
558 579
 		};
@@ -621,6 +642,7 @@
621 642
 				F5E424150EA3E4E10046E362 /* PBDiffWindowController.m in Sources */,
622 643
 				F5E424180EA3E4EB0046E362 /* PBWebDiffController.m in Sources */,
623 644
 				F5FE6C030EB13BC900F30D12 /* PBServicesController.m in Sources */,
  645
+				F50A41230EBB875D00208746 /* PBNiceSplitView.m in Sources */,
624 646
 			);
625 647
 			runOnlyForDeploymentPostprocessing = 0;
626 648
 		};
BIN  Images/mainSplitterBar.tiff
Binary file not shown
BIN  Images/mainSplitterDimple.tiff
Binary file not shown
14  PBGitCommitView.xib
@@ -8,7 +8,7 @@
8 8
 		<string key="IBDocument.HIToolboxVersion">352.00</string>
9 9
 		<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
10 10
 			<bool key="EncodedWithXMLCoder">YES</bool>
11  
-			<integer value="186"/>
  11
+			<integer value="1" id="9"/>
12 12
 		</object>
13 13
 		<object class="NSArray" key="IBDocument.PluginDependencies">
14 14
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -114,7 +114,7 @@
114 114
 											<bool key="EncodedWithXMLCoder">YES</bool>
115 115
 											<integer value="12" id="777559147"/>
116 116
 											<reference ref="777559147"/>
117  
-											<integer value="1" id="9"/>
  117
+											<reference ref="9"/>
118 118
 										</object>
119 119
 									</object>
120 120
 								</object>
@@ -1424,6 +1424,7 @@
1424 1424
 					<string>133.IBPluginDependency</string>
1425 1425
 					<string>163.IBPluginDependency</string>
1426 1426
 					<string>164.IBPluginDependency</string>
  1427
+					<string>186.CustomClassName</string>
1427 1428
 					<string>2.IBPluginDependency</string>
1428 1429
 					<string>217.IBPluginDependency</string>
1429 1430
 					<string>225.IBEditorWindowLastContentRect</string>
@@ -1467,6 +1468,7 @@
1467 1468
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
1468 1469
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
1469 1470
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  1471
+					<string>PBNiceSplitView</string>
1470 1472
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
1471 1473
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
1472 1474
 					<string>{{341, 837}, {616, 169}}</string>
@@ -1590,6 +1592,14 @@
1590 1592
 					</object>
1591 1593
 				</object>
1592 1594
 				<object class="IBPartialClassDescription">
  1595
+					<string key="className">PBNiceSplitView</string>
  1596
+					<string key="superclassName">NSSplitView</string>
  1597
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  1598
+						<string key="majorKey">IBProjectSource</string>
  1599
+						<string key="minorKey">PBNiceSplitView.h</string>
  1600
+					</object>
  1601
+				</object>
  1602
+				<object class="IBPartialClassDescription">
1593 1603
 					<string key="className">PBViewController</string>
1594 1604
 					<string key="superclassName">NSViewController</string>
1595 1605
 					<object class="NSMutableDictionary" key="outlets">
111  PBGitHistoryView.xib
@@ -3,12 +3,12 @@
3 3
 	<data>
4 4
 		<int key="IBDocument.SystemTarget">1050</int>
5 5
 		<string key="IBDocument.SystemVersion">9F33</string>
6  
-		<string key="IBDocument.InterfaceBuilderVersion">672</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">670</string>
7 7
 		<string key="IBDocument.AppKitVersion">949.34</string>
8 8
 		<string key="IBDocument.HIToolboxVersion">352.00</string>
9 9
 		<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
10 10
 			<bool key="EncodedWithXMLCoder">YES</bool>
11  
-			<integer value="48"/>
  11
+			<integer value="3"/>
12 12
 		</object>
13 13
 		<object class="NSArray" key="IBDocument.PluginDependencies">
14 14
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -449,27 +449,27 @@
449 449
 											<object class="NSTableView" id="254268962">
450 450
 												<reference key="NSNextResponder" ref="546023969"/>
451 451
 												<int key="NSvFlags">256</int>
452  
-												<string key="NSFrameSize">{835, 176}</string>
  452
+												<string key="NSFrameSize">{852, 194}</string>
453 453
 												<reference key="NSSuperview" ref="546023969"/>
454 454
 												<bool key="NSEnabled">YES</bool>
455 455
 												<object class="NSTableHeaderView" key="NSHeaderView" id="942510576">
456 456
 													<reference key="NSNextResponder" ref="906093892"/>
457 457
 													<int key="NSvFlags">256</int>
458  
-													<string key="NSFrameSize">{835, 17}</string>
  458
+													<string key="NSFrameSize">{852, 17}</string>
459 459
 													<reference key="NSSuperview" ref="906093892"/>
460 460
 													<reference key="NSTableView" ref="254268962"/>
461 461
 												</object>
462 462
 												<object class="_NSCornerView" key="NSCornerView" id="806470424">
463 463
 													<reference key="NSNextResponder" ref="663765878"/>
464  
-													<int key="NSvFlags">256</int>
465  
-													<string key="NSFrame">{{836, 0}, {16, 17}}</string>
  464
+													<int key="NSvFlags">-2147483392</int>
  465
+													<string key="NSFrame">{{-26, 0}, {16, 17}}</string>
466 466
 													<reference key="NSSuperview" ref="663765878"/>
467 467
 												</object>
468 468
 												<object class="NSMutableArray" key="NSTableColumns">
469 469
 													<bool key="EncodedWithXMLCoder">YES</bool>
470 470
 													<object class="NSTableColumn" id="1025472344">
471 471
 														<string key="NSIdentifier">subject</string>
472  
-														<double key="NSWidth">4.920000e+02</double>
  472
+														<double key="NSWidth">5.090000e+02</double>
473 473
 														<double key="NSMinWidth">4.000000e+01</double>
474 474
 														<double key="NSMaxWidth">1.000000e+03</double>
475 475
 														<object class="NSTableHeaderCell" key="NSHeaderCell">
@@ -590,17 +590,17 @@
590 590
 												<bool key="NSAllowsTypeSelect">YES</bool>
591 591
 											</object>
592 592
 										</object>
593  
-										<string key="NSFrame">{{1, 17}, {835, 176}}</string>
  593
+										<string key="NSFrame">{{0, 17}, {852, 194}}</string>
594 594
 										<reference key="NSSuperview" ref="663765878"/>
595 595
 										<reference key="NSNextKeyView" ref="254268962"/>
596 596
 										<reference key="NSDocView" ref="254268962"/>
597 597
 										<reference key="NSBGColor" ref="827363147"/>
598  
-										<int key="NScvFlags">4</int>
  598
+										<int key="NScvFlags">2</int>
599 599
 									</object>
600 600
 									<object class="NSScroller" id="152625445">
601 601
 										<reference key="NSNextResponder" ref="663765878"/>
602  
-										<int key="NSvFlags">256</int>
603  
-										<string key="NSFrame">{{836, 17}, {15, 176}}</string>
  602
+										<int key="NSvFlags">-2147483392</int>
  603
+										<string key="NSFrame">{{837, 17}, {15, 179}}</string>
604 604
 										<reference key="NSSuperview" ref="663765878"/>
605 605
 										<reference key="NSTarget" ref="663765878"/>
606 606
 										<string key="NSAction">_doScroller:</string>
@@ -609,8 +609,8 @@
609 609
 									</object>
610 610
 									<object class="NSScroller" id="452331733">
611 611
 										<reference key="NSNextResponder" ref="663765878"/>
612  
-										<int key="NSvFlags">256</int>
613  
-										<string key="NSFrame">{{1, 193}, {835, 15}}</string>
  612
+										<int key="NSvFlags">-2147483392</int>
  613
+										<string key="NSFrame">{{0, 196}, {837, 15}}</string>
614 614
 										<reference key="NSSuperview" ref="663765878"/>
615 615
 										<int key="NSsFlags">1</int>
616 616
 										<reference key="NSTarget" ref="663765878"/>
@@ -624,7 +624,7 @@
624 624
 											<bool key="EncodedWithXMLCoder">YES</bool>
625 625
 											<reference ref="942510576"/>
626 626
 										</object>
627  
-										<string key="NSFrame">{{1, 0}, {835, 17}}</string>
  627
+										<string key="NSFrameSize">{852, 17}</string>
628 628
 										<reference key="NSSuperview" ref="663765878"/>
629 629
 										<reference key="NSNextKeyView" ref="942510576"/>
630 630
 										<reference key="NSDocView" ref="942510576"/>
@@ -633,10 +633,10 @@
633 633
 									</object>
634 634
 									<reference ref="806470424"/>
635 635
 								</object>
636  
-								<string key="NSFrameSize">{852, 209}</string>
  636
+								<string key="NSFrameSize">{852, 211}</string>
637 637
 								<reference key="NSSuperview" ref="202620420"/>
638 638
 								<reference key="NSNextKeyView" ref="546023969"/>
639  
-								<int key="NSsFlags">50</int>
  639
+								<int key="NSsFlags">560</int>
640 640
 								<reference key="NSVScroller" ref="152625445"/>
641 641
 								<reference key="NSHScroller" ref="452331733"/>
642 642
 								<reference key="NSContentView" ref="546023969"/>
@@ -647,14 +647,14 @@
647 647
 							<object class="NSTabView" id="135073984">
648 648
 								<reference key="NSNextResponder" ref="202620420"/>
649 649
 								<int key="NSvFlags">18</int>
650  
-								<string key="NSFrame">{{0, 210}, {852, 186}}</string>
  650
+								<string key="NSFrame">{{0, 212}, {852, 186}}</string>
651 651
 								<reference key="NSSuperview" ref="202620420"/>
652 652
 								<object class="NSMutableArray" key="NSTabViewItems">
653 653
 									<bool key="EncodedWithXMLCoder">YES</bool>
654 654
 									<object class="NSTabViewItem" id="375889551">
655 655
 										<string key="NSIdentifier">1</string>
656 656
 										<object class="NSView" key="NSView" id="859052736">
657  
-											<reference key="NSNextResponder" ref="135073984"/>
  657
+											<nil key="NSNextResponder"/>
658 658
 											<int key="NSvFlags">274</int>
659 659
 											<object class="NSMutableArray" key="NSSubviews">
660 660
 												<bool key="EncodedWithXMLCoder">YES</bool>
@@ -708,7 +708,6 @@
708 708
 												</object>
709 709
 											</object>
710 710
 											<string key="NSFrameSize">{852, 0}</string>
711  
-											<reference key="NSSuperview" ref="135073984"/>
712 711
 										</object>
713 712
 										<string key="NSLabel">Details</string>
714 713
 										<object class="NSColor" key="NSColor" id="457244339">
@@ -739,7 +738,7 @@
739 738
 																<object class="NSTextView" id="239018083">
740 739
 																	<reference key="NSNextResponder" ref="948090592"/>
741 740
 																	<int key="NSvFlags">2322</int>
742  
-																	<string key="NSFrameSize">{835, 70}</string>
  741
+																	<string key="NSFrameSize">{835, 37}</string>
743 742
 																	<reference key="NSSuperview" ref="948090592"/>
744 743
 																	<object class="NSTextContainer" key="NSTextContainer" id="53511606">
745 744
 																		<object class="NSLayoutManager" key="NSLayoutManager">
@@ -930,7 +929,7 @@
930 929
 																	<nil key="NSDelegate"/>
931 930
 																</object>
932 931
 															</object>
933  
-															<string key="NSFrame">{{1, 1}, {835, 218}}</string>
  932
+															<string key="NSFrame">{{1, 1}, {835, 185}}</string>
934 933
 															<reference key="NSSuperview" ref="670264682"/>
935 934
 															<reference key="NSNextKeyView" ref="239018083"/>
936 935
 															<reference key="NSDocView" ref="239018083"/>
@@ -944,7 +943,7 @@
944 943
 														<object class="NSScroller" id="722857290">
945 944
 															<reference key="NSNextResponder" ref="670264682"/>
946 945
 															<int key="NSvFlags">256</int>
947  
-															<string key="NSFrame">{{836, 1}, {15, 218}}</string>
  946
+															<string key="NSFrame">{{836, 1}, {15, 185}}</string>
948 947
 															<reference key="NSSuperview" ref="670264682"/>
949 948
 															<reference key="NSTarget" ref="670264682"/>
950 949
 															<string key="NSAction">_doScroller:</string>
@@ -962,7 +961,7 @@
962 961
 															<double key="NSPercent">9.456522e-01</double>
963 962
 														</object>
964 963
 													</object>
965  
-													<string key="NSFrameSize">{852, 220}</string>
  964
+													<string key="NSFrameSize">{852, 187}</string>
966 965
 													<reference key="NSSuperview" ref="624894365"/>
967 966
 													<reference key="NSNextKeyView" ref="948090592"/>
968 967
 													<int key="NSsFlags">18</int>
@@ -971,7 +970,7 @@
971 970
 													<reference key="NSContentView" ref="948090592"/>
972 971
 												</object>
973 972
 											</object>
974  
-											<string key="NSFrameSize">{852, 220}</string>
  973
+											<string key="NSFrameSize">{852, 186}</string>
975 974
 										</object>
976 975
 										<string key="NSLabel">Raw</string>
977 976
 										<reference key="NSColor" ref="457244339"/>
@@ -980,7 +979,7 @@
980 979
 									<object class="NSTabViewItem" id="529992882">
981 980
 										<string key="NSIdentifier">Item 2</string>
982 981
 										<object class="NSView" key="NSView" id="657042048">
983  
-											<nil key="NSNextResponder"/>
  982
+											<reference key="NSNextResponder" ref="135073984"/>
984 983
 											<int key="NSvFlags">256</int>
985 984
 											<object class="NSMutableArray" key="NSSubviews">
986 985
 												<bool key="EncodedWithXMLCoder">YES</bool>
@@ -1002,7 +1001,7 @@
1002 1001
 																		<object class="NSOutlineView" id="216928480">
1003 1002
 																			<reference key="NSNextResponder" ref="859661469"/>
1004 1003
 																			<int key="NSvFlags">256</int>
1005  
-																			<string key="NSFrameSize">{191, 227}</string>
  1004
+																			<string key="NSFrameSize">{191, 186}</string>
1006 1005
 																			<reference key="NSSuperview" ref="859661469"/>
1007 1006
 																			<bool key="NSEnabled">YES</bool>
1008 1007
 																			<object class="_NSCornerView" key="NSCornerView">
@@ -1053,7 +1052,7 @@
1053 1052
 																			<bool key="NSAllowsTypeSelect">YES</bool>
1054 1053
 																		</object>
1055 1054
 																	</object>
1056  
-																	<string key="NSFrame">{{1, 1}, {191, 227}}</string>
  1055
+																	<string key="NSFrame">{{1, 1}, {191, 186}}</string>
1057 1056
 																	<reference key="NSSuperview" ref="776605770"/>
1058 1057
 																	<reference key="NSNextKeyView" ref="216928480"/>
1059 1058
 																	<reference key="NSDocView" ref="216928480"/>
@@ -1063,7 +1062,7 @@
1063 1062
 																<object class="NSScroller" id="692013536">
1064 1063
 																	<reference key="NSNextResponder" ref="776605770"/>
1065 1064
 																	<int key="NSvFlags">256</int>
1066  
-																	<string key="NSFrame">{{192, 1}, {15, 227}}</string>
  1065
+																	<string key="NSFrame">{{192, 1}, {15, 186}}</string>
1067 1066
 																	<reference key="NSSuperview" ref="776605770"/>
1068 1067
 																	<reference key="NSTarget" ref="776605770"/>
1069 1068
 																	<string key="NSAction">_doScroller:</string>
@@ -1081,7 +1080,7 @@
1081 1080
 																	<double key="NSPercent">9.980119e-01</double>
1082 1081
 																</object>
1083 1082
 															</object>
1084  
-															<string key="NSFrameSize">{208, 229}</string>
  1083
+															<string key="NSFrameSize">{208, 188}</string>
1085 1084
 															<reference key="NSSuperview" ref="626906425"/>
1086 1085
 															<reference key="NSNextKeyView" ref="859661469"/>
1087 1086
 															<int key="NSsFlags">18</int>
@@ -1103,7 +1102,30 @@
1103 1102
 																		<object class="NSTextView" id="75600241">
1104 1103
 																			<reference key="NSNextResponder" ref="321980917"/>
1105 1104
 																			<int key="NSvFlags">2322</int>
1106  
-																			<string key="NSFrameSize">{543, 112}</string>
  1105
+																			<object class="NSMutableSet" key="NSDragTypes">
  1106
+																				<bool key="EncodedWithXMLCoder">YES</bool>
  1107
+																				<object class="NSMutableArray" key="set.sortedObjects">
  1108
+																					<bool key="EncodedWithXMLCoder">YES</bool>
  1109
+																					<string>Apple HTML pasteboard type</string>
  1110
+																					<string>Apple PDF pasteboard type</string>
  1111
+																					<string>Apple PICT pasteboard type</string>
  1112
+																					<string>Apple PNG pasteboard type</string>
  1113
+																					<string>Apple URL pasteboard type</string>
  1114
+																					<string>CorePasteboardFlavorType 0x6D6F6F76</string>
  1115
+																					<string>CorePasteboardFlavorType 0x75726C20</string>
  1116
+																					<string>NSColor pasteboard type</string>
  1117
+																					<string>NSFilenamesPboardType</string>
  1118
+																					<string>NSStringPboardType</string>
  1119
+																					<string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
  1120
+																					<string>NeXT RTFD pasteboard type</string>
  1121
+																					<string>NeXT Rich Text Format v1.0 pasteboard type</string>
  1122
+																					<string>NeXT TIFF v4.0 pasteboard type</string>
  1123
+																					<string>NeXT font pasteboard type</string>
  1124
+																					<string>NeXT ruler pasteboard type</string>
  1125
+																					<string>WebURLsWithTitlesPboardType</string>
  1126
+																				</object>
  1127
+																			</object>
  1128
+																			<string key="NSFrameSize">{543, 71}</string>
1107 1129
 																			<reference key="NSSuperview" ref="321980917"/>
1108 1130
 																			<object class="NSTextContainer" key="NSTextContainer" id="480935218">
1109 1131
 																				<object class="NSLayoutManager" key="NSLayoutManager">
@@ -1164,7 +1186,7 @@
1164 1186
 																			<nil key="NSDelegate"/>
1165 1187
 																		</object>
1166 1188
 																	</object>
1167  
-																	<string key="NSFrame">{{1, 1}, {626, 227}}</string>
  1189
+																	<string key="NSFrame">{{1, 1}, {626, 186}}</string>
1168 1190
 																	<reference key="NSSuperview" ref="630571485"/>
1169 1191
 																	<reference key="NSNextKeyView" ref="75600241"/>
1170 1192
 																	<reference key="NSDocView" ref="75600241"/>
@@ -1175,7 +1197,7 @@
1175 1197
 																<object class="NSScroller" id="802032705">
1176 1198
 																	<reference key="NSNextResponder" ref="630571485"/>
1177 1199
 																	<int key="NSvFlags">256</int>
1178  
-																	<string key="NSFrame">{{627, 1}, {15, 227}}</string>
  1200
+																	<string key="NSFrame">{{627, 1}, {15, 186}}</string>
1179 1201
 																	<reference key="NSSuperview" ref="630571485"/>
1180 1202
 																	<reference key="NSTarget" ref="630571485"/>
1181 1203
 																	<string key="NSAction">_doScroller:</string>
@@ -1193,7 +1215,7 @@
1193 1215
 																	<double key="NSPercent">9.456522e-01</double>
1194 1216
 																</object>
1195 1217
 															</object>
1196  
-															<string key="NSFrame">{{209, 0}, {643, 229}}</string>
  1218
+															<string key="NSFrame">{{209, 0}, {643, 188}}</string>
1197 1219
 															<reference key="NSSuperview" ref="626906425"/>
1198 1220
 															<reference key="NSNextKeyView" ref="321980917"/>
1199 1221
 															<int key="NSsFlags">18</int>
@@ -1202,31 +1224,32 @@
1202 1224
 															<reference key="NSContentView" ref="321980917"/>
1203 1225
 														</object>
1204 1226
 													</object>
1205  
-													<string key="NSFrameSize">{852, 229}</string>
  1227
+													<string key="NSFrameSize">{852, 188}</string>
1206 1228
 													<reference key="NSSuperview" ref="657042048"/>
1207 1229
 													<bool key="NSIsVertical">YES</bool>
1208 1230
 													<int key="NSDividerStyle">2</int>
1209 1231
 												</object>
1210 1232
 											</object>
1211  
-											<string key="NSFrameSize">{852, 229}</string>
  1233
+											<string key="NSFrameSize">{852, 186}</string>
  1234
+											<reference key="NSSuperview" ref="135073984"/>
1212 1235
 										</object>
1213 1236
 										<string key="NSLabel">Tree</string>
1214 1237
 										<reference key="NSColor" ref="457244339"/>
1215 1238
 										<reference key="NSTabView" ref="135073984"/>
1216 1239
 									</object>
1217 1240
 								</object>
1218  
-								<reference key="NSSelectedTabViewItem" ref="375889551"/>
  1241
+								<reference key="NSSelectedTabViewItem" ref="529992882"/>
1219 1242
 								<reference key="NSFont" ref="924107556"/>
1220 1243
 								<int key="NSTvFlags">6</int>
1221 1244
 								<bool key="NSAllowTruncatedLabels">YES</bool>
1222 1245
 								<bool key="NSDrawsBackground">YES</bool>
1223 1246
 								<object class="NSMutableArray" key="NSSubviews">
1224 1247
 									<bool key="EncodedWithXMLCoder">YES</bool>
1225  
-									<reference ref="859052736"/>
  1248
+									<reference ref="657042048"/>
1226 1249
 								</object>
1227 1250
 							</object>
1228 1251
 						</object>
1229  
-						<string key="NSFrame">{{0, 35}, {852, 396}}</string>
  1252
+						<string key="NSFrame">{{0, 35}, {852, 398}}</string>
1230 1253
 						<reference key="NSSuperview" ref="319362431"/>
1231 1254
 						<int key="NSDividerStyle">2</int>
1232 1255
 					</object>
@@ -2378,6 +2401,7 @@
2378 2401
 					<string>18.IBPluginDependency</string>
2379 2402
 					<string>19.IBPluginDependency</string>
2380 2403
 					<string>190.IBPluginDependency</string>
  2404
+					<string>2.CustomClassName</string>
2381 2405
 					<string>2.IBEditorWindowLastContentRect</string>
2382 2406
 					<string>2.IBPluginDependency</string>
2383 2407
 					<string>2.ImportedFromIB2</string>
@@ -2457,6 +2481,7 @@
2457 2481
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2458 2482
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2459 2483
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  2484
+					<string>PBNiceSplitView</string>
2460 2485
 					<string>{{312, 577}, {852, 384}}</string>
2461 2486
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2462 2487
 					<reference ref="9"/>
@@ -2512,7 +2537,7 @@
2512 2537
 						</object>
2513 2538
 					</object>
2514 2539
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2515  
-					<string>{{1359, 484}, {852, 432}}</string>
  2540
+					<string>{{387, 484}, {852, 432}}</string>
2516 2541
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2517 2542
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2518 2543
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -2652,6 +2677,14 @@
2652 2677
 					</object>
2653 2678
 				</object>
2654 2679
 				<object class="IBPartialClassDescription">
  2680
+					<string key="className">PBNiceSplitView</string>
  2681
+					<string key="superclassName">NSSplitView</string>
  2682
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  2683
+						<string key="majorKey">IBProjectSource</string>
  2684
+						<string key="minorKey">PBNiceSplitView.h</string>
  2685
+					</object>
  2686
+				</object>
  2687
+				<object class="IBPartialClassDescription">
2655 2688
 					<string key="className">PBQLOutlineView</string>
2656 2689
 					<string key="superclassName">NSOutlineView</string>
2657 2690
 					<object class="NSMutableDictionary" key="outlets">
15  PBNiceSplitView.h
... ...
@@ -0,0 +1,15 @@
  1
+//
  2
+//  PBNiceSplitView.h
  3
+//  GitX
  4
+//
  5
+//  Created by Pieter de Bie on 31-10-08.
  6
+//  Copyright 2008 Pieter de Bie. All rights reserved.
  7
+//
  8
+
  9
+#import <Cocoa/Cocoa.h>
  10
+
  11
+@interface PBNiceSplitView : NSSplitView {
  12
+
  13
+}
  14
+
  15
+@end
45  PBNiceSplitView.m
... ...
@@ -0,0 +1,45 @@
  1
+//
  2
+//  PBNiceSplitView.m
  3
+//  GitX
  4
+//
  5
+//  Created by Pieter de Bie on 31-10-08.
  6
+//  Copyright 2008 Pieter de Bie. All rights reserved.
  7
+//
  8
+
  9
+#import "PBNiceSplitView.h"
  10
+
  11
+static NSImage *bar;
  12
+static NSImage *grip;
  13
+
  14
+@implementation PBNiceSplitView
  15
+
  16
++(void) initialize
  17
+{
  18
+	NSString *barPath = [[NSBundle mainBundle] pathForResource:@"mainSplitterBar" ofType:@"tiff"];
  19
+	bar = [[NSImage alloc] initWithContentsOfFile: barPath];
  20
+	[bar setFlipped: YES];
  21
+
  22
+	NSString *gripPath = [[NSBundle mainBundle] pathForResource:@"mainSplitterDimple" ofType:@"tiff"];
  23
+	grip = [[NSImage alloc] initWithContentsOfFile: gripPath];
  24
+	[grip setFlipped: YES];
  25
+}
  26
+
  27
+- (void)drawDividerInRect:(NSRect)aRect
  28
+{
  29
+	// Draw bar and grip onto the canvas
  30
+	NSRect gripRect = aRect;
  31
+	gripRect.origin.x = (NSMidX(aRect) - ([grip size].width/2));
  32
+	gripRect.size.width = 8;
  33
+	
  34
+	[self lockFocus];
  35
+	[bar drawInRect:aRect fromRect:NSZeroRect operation:NSCompositeCopy fraction:1.0];
  36
+	[grip drawInRect:gripRect fromRect:NSZeroRect operation:NSCompositeSourceOver fraction:1.0];
  37
+	[self unlockFocus];
  38
+}
  39
+
  40
+- (CGFloat)dividerThickness
  41
+{
  42
+	return 10.0;
  43
+}
  44
+
  45
+@end

0 notes on commit 77ad37a

Please sign in to comment.
Something went wrong with that request. Please try again.