Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added fullscreen support for Lion

Now if the user is running Lion, there will be a view menu with a fullscreen option in the main menu as well as each window will have a fullscreen marker.
  • Loading branch information...
commit cb0e3d239488e2582bd88449dbe049cf10c4e484 1 parent d05d2da
David Beck authored September 23, 2011 Jan Weiß committed August 31, 2012
383  English.lproj/MainMenu.xib
@@ -2,13 +2,13 @@
2 2
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
3 3
 	<data>
4 4
 		<int key="IBDocument.SystemTarget">1060</int>
5  
-		<string key="IBDocument.SystemVersion">10J4138</string>
6  
-		<string key="IBDocument.InterfaceBuilderVersion">1306</string>
7  
-		<string key="IBDocument.AppKitVersion">1038.35</string>
8  
-		<string key="IBDocument.HIToolboxVersion">461.00</string>
  5
+		<string key="IBDocument.SystemVersion">11B26</string>
  6
+		<string key="IBDocument.InterfaceBuilderVersion">1617</string>
  7
+		<string key="IBDocument.AppKitVersion">1138</string>
  8
+		<string key="IBDocument.HIToolboxVersion">566.00</string>
9 9
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
10 10
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
11  
-			<string key="NS.object.0">1306</string>
  11
+			<string key="NS.object.0">1617</string>
12 12
 		</object>
13 13
 		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
14 14
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -816,8 +816,9 @@
816 816
 				<string key="NSWindowTitle">Preferences</string>
817 817
 				<string key="NSWindowClass">NSWindow</string>
818 818
 				<nil key="NSViewClass"/>
  819
+				<nil key="NSUserInterfaceItemIdentifier"/>
819 820
 				<object class="NSView" key="NSWindowView" id="755094886">
820  
-					<reference key="NSNextResponder"/>
  821
+					<nil key="NSNextResponder"/>
821 822
 					<int key="NSvFlags">256</int>
822 823
 					<object class="NSMutableArray" key="NSSubviews">
823 824
 						<bool key="EncodedWithXMLCoder">YES</bool>
@@ -828,7 +829,7 @@
828 829
 								<bool key="EncodedWithXMLCoder">YES</bool>
829 830
 								<object class="NSView" id="54308797">
830 831
 									<reference key="NSNextResponder" ref="396535826"/>
831  
-									<int key="NSvFlags">256</int>
  832
+									<int key="NSvFlags">274</int>
832 833
 									<object class="NSMutableArray" key="NSSubviews">
833 834
 										<bool key="EncodedWithXMLCoder">YES</bool>
834 835
 										<object class="NSTextField" id="943641235">
@@ -1073,7 +1074,6 @@
1073 1074
 											<int key="NSvFlags">268</int>
1074 1075
 											<string key="NSFrame">{{381, 6}, {90, 32}}</string>
1075 1076
 											<reference key="NSSuperview" ref="54308797"/>
1076  
-											<reference key="NSNextKeyView"/>
1077 1077
 											<bool key="NSEnabled">YES</bool>
1078 1078
 											<object class="NSButtonCell" key="NSCell" id="185535899">
1079 1079
 												<int key="NSCellFlags">67239424</int>
@@ -1122,12 +1122,12 @@
1122 1122
 						</object>
1123 1123
 					</object>
1124 1124
 					<string key="NSFrame">{{7, 11}, {519, 222}}</string>
1125  
-					<reference key="NSSuperview"/>
1126 1125
 					<reference key="NSNextKeyView" ref="396535826"/>
1127 1126
 				</object>
1128  
-				<string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
1129  
-				<string key="NSMaxSize">{1e+13, 1e+13}</string>
  1127
+				<string key="NSScreenRect">{{0, 0}, {2560, 1440}}</string>
  1128
+				<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
1130 1129
 				<string key="NSFrameAutosaveName">PreferencesPanel</string>
  1130
+				<bool key="NSWindowIsRestorable">YES</bool>
1131 1131
 			</object>
1132 1132
 			<object class="NSUserDefaultsController" id="36957087">
1133 1133
 				<bool key="NSSharedInstance">YES</bool>
@@ -1135,6 +1135,32 @@
1135 1135
 			<object class="NSCustomObject" id="682236088">
1136 1136
 				<string key="NSClassName">PreferencesController</string>
1137 1137
 			</object>
  1138
+			<object class="NSCustomObject" id="935028063">
  1139
+				<string key="NSClassName">MLAppDelegate</string>
  1140
+			</object>
  1141
+			<object class="NSMenuItem" id="391324207">
  1142
+				<string key="NSTitle">View</string>
  1143
+				<string key="NSKeyEquiv"/>
  1144
+				<int key="NSMnemonicLoc">2147483647</int>
  1145
+				<reference key="NSOnImage" ref="1033313550"/>
  1146
+				<reference key="NSMixedImage" ref="310636482"/>
  1147
+				<string key="NSAction">submenuAction:</string>
  1148
+				<object class="NSMenu" key="NSSubmenu" id="831548462">
  1149
+					<string key="NSTitle">View</string>
  1150
+					<object class="NSMutableArray" key="NSMenuItems">
  1151
+						<bool key="EncodedWithXMLCoder">YES</bool>
  1152
+						<object class="NSMenuItem" id="411283032">
  1153
+							<reference key="NSMenu" ref="831548462"/>
  1154
+							<string key="NSTitle">Enter Full Screen</string>
  1155
+							<string key="NSKeyEquiv">f</string>
  1156
+							<int key="NSKeyEquivModMask">1310720</int>
  1157
+							<int key="NSMnemonicLoc">2147483647</int>
  1158
+							<reference key="NSOnImage" ref="1033313550"/>
  1159
+							<reference key="NSMixedImage" ref="310636482"/>
  1160
+						</object>
  1161
+					</object>
  1162
+				</object>
  1163
+			</object>
1138 1164
 		</object>
1139 1165
 		<object class="IBObjectContainer" key="IBDocument.Objects">
1140 1166
 			<object class="NSMutableArray" key="connectionRecords">
@@ -1643,6 +1669,30 @@
1643 1669
 					</object>
1644 1670
 					<int key="connectionID">586</int>
1645 1671
 				</object>
  1672
+				<object class="IBConnectionRecord">
  1673
+					<object class="IBActionConnection" key="connection">
  1674
+						<string key="label">toggleFullScreen:</string>
  1675
+						<reference key="source" ref="1014"/>
  1676
+						<reference key="destination" ref="411283032"/>
  1677
+					</object>
  1678
+					<int key="connectionID">592</int>
  1679
+				</object>
  1680
+				<object class="IBConnectionRecord">
  1681
+					<object class="IBOutletConnection" key="connection">
  1682
+						<string key="label">viewMenu</string>
  1683
+						<reference key="source" ref="935028063"/>
  1684
+						<reference key="destination" ref="391324207"/>
  1685
+					</object>
  1686
+					<int key="connectionID">594</int>
  1687
+				</object>
  1688
+				<object class="IBConnectionRecord">
  1689
+					<object class="IBOutletConnection" key="connection">
  1690
+						<string key="label">delegate</string>
  1691
+						<reference key="source" ref="1050"/>
  1692
+						<reference key="destination" ref="935028063"/>
  1693
+					</object>
  1694
+					<int key="connectionID">595</int>
  1695
+				</object>
1646 1696
 			</object>
1647 1697
 			<object class="IBMutableOrderedSet" key="objectRecords">
1648 1698
 				<object class="NSArray" key="orderedObjects">
@@ -2431,6 +2481,34 @@
2431 2481
 						<reference key="object" ref="185535899"/>
2432 2482
 						<reference key="parent" ref="158581621"/>
2433 2483
 					</object>
  2484
+					<object class="IBObjectRecord">
  2485
+						<int key="objectID">593</int>
  2486
+						<reference key="object" ref="935028063"/>
  2487
+						<reference key="parent" ref="0"/>
  2488
+					</object>
  2489
+					<object class="IBObjectRecord">
  2490
+						<int key="objectID">587</int>
  2491
+						<reference key="object" ref="391324207"/>
  2492
+						<object class="NSMutableArray" key="children">
  2493
+							<bool key="EncodedWithXMLCoder">YES</bool>
  2494
+							<reference ref="831548462"/>
  2495
+						</object>
  2496
+						<reference key="parent" ref="0"/>
  2497
+					</object>
  2498
+					<object class="IBObjectRecord">
  2499
+						<int key="objectID">588</int>
  2500
+						<reference key="object" ref="831548462"/>
  2501
+						<object class="NSMutableArray" key="children">
  2502
+							<bool key="EncodedWithXMLCoder">YES</bool>
  2503
+							<reference ref="411283032"/>
  2504
+						</object>
  2505
+						<reference key="parent" ref="391324207"/>
  2506
+					</object>
  2507
+					<object class="IBObjectRecord">
  2508
+						<int key="objectID">589</int>
  2509
+						<reference key="object" ref="411283032"/>
  2510
+						<reference key="parent" ref="831548462"/>
  2511
+					</object>
2434 2512
 				</object>
2435 2513
 			</object>
2436 2514
 			<object class="NSMutableDictionary" key="flattenedProperties">
@@ -2441,131 +2519,60 @@
2441 2519
 					<string>-2.IBPluginDependency</string>
2442 2520
 					<string>-3.IBPluginDependency</string>
2443 2521
 					<string>112.IBPluginDependency</string>
2444  
-					<string>112.ImportedFromIB2</string>
2445 2522
 					<string>124.IBPluginDependency</string>
2446  
-					<string>124.ImportedFromIB2</string>
2447 2523
 					<string>125.IBPluginDependency</string>
2448  
-					<string>125.ImportedFromIB2</string>
2449  
-					<string>125.editorWindowContentRectSynchronizationRect</string>
2450 2524
 					<string>126.IBPluginDependency</string>
2451  
-					<string>126.ImportedFromIB2</string>
2452 2525
 					<string>129.IBPluginDependency</string>
2453  
-					<string>129.ImportedFromIB2</string>
2454 2526
 					<string>130.IBPluginDependency</string>
2455  
-					<string>130.ImportedFromIB2</string>
2456  
-					<string>130.editorWindowContentRectSynchronizationRect</string>
2457 2527
 					<string>131.IBPluginDependency</string>
2458  
-					<string>131.ImportedFromIB2</string>
2459 2528
 					<string>134.IBPluginDependency</string>
2460  
-					<string>134.ImportedFromIB2</string>
2461 2529
 					<string>136.IBPluginDependency</string>
2462  
-					<string>136.ImportedFromIB2</string>
2463 2530
 					<string>143.IBPluginDependency</string>
2464  
-					<string>143.ImportedFromIB2</string>
2465 2531
 					<string>144.IBPluginDependency</string>
2466  
-					<string>144.ImportedFromIB2</string>
2467 2532
 					<string>145.IBPluginDependency</string>
2468  
-					<string>145.ImportedFromIB2</string>
2469 2533
 					<string>149.IBPluginDependency</string>
2470  
-					<string>149.ImportedFromIB2</string>
2471 2534
 					<string>150.IBPluginDependency</string>
2472  
-					<string>150.ImportedFromIB2</string>
2473 2535
 					<string>19.IBPluginDependency</string>
2474  
-					<string>19.ImportedFromIB2</string>
2475 2536
 					<string>195.IBPluginDependency</string>
2476  
-					<string>195.ImportedFromIB2</string>
2477 2537
 					<string>196.IBPluginDependency</string>
2478  
-					<string>196.ImportedFromIB2</string>
2479 2538
 					<string>197.IBPluginDependency</string>
2480  
-					<string>197.ImportedFromIB2</string>
2481 2539
 					<string>198.IBPluginDependency</string>
2482  
-					<string>198.ImportedFromIB2</string>
2483 2540
 					<string>199.IBPluginDependency</string>
2484  
-					<string>199.ImportedFromIB2</string>
2485  
-					<string>200.IBEditorWindowLastContentRect</string>
2486 2541
 					<string>200.IBPluginDependency</string>
2487  
-					<string>200.ImportedFromIB2</string>
2488  
-					<string>200.editorWindowContentRectSynchronizationRect</string>
2489 2542
 					<string>201.IBPluginDependency</string>
2490  
-					<string>201.ImportedFromIB2</string>
2491 2543
 					<string>202.IBPluginDependency</string>
2492  
-					<string>202.ImportedFromIB2</string>
2493 2544
 					<string>203.IBPluginDependency</string>
2494  
-					<string>203.ImportedFromIB2</string>
2495 2545
 					<string>204.IBPluginDependency</string>
2496  
-					<string>204.ImportedFromIB2</string>
2497  
-					<string>205.IBEditorWindowLastContentRect</string>
2498 2546
 					<string>205.IBPluginDependency</string>
2499  
-					<string>205.ImportedFromIB2</string>
2500  
-					<string>205.editorWindowContentRectSynchronizationRect</string>
2501 2547
 					<string>206.IBPluginDependency</string>
2502  
-					<string>206.ImportedFromIB2</string>
2503 2548
 					<string>207.IBPluginDependency</string>
2504  
-					<string>207.ImportedFromIB2</string>
2505 2549
 					<string>208.IBPluginDependency</string>
2506  
-					<string>208.ImportedFromIB2</string>
2507 2550
 					<string>209.IBPluginDependency</string>
2508  
-					<string>209.ImportedFromIB2</string>
2509 2551
 					<string>210.IBPluginDependency</string>
2510  
-					<string>210.ImportedFromIB2</string>
2511 2552
 					<string>211.IBPluginDependency</string>
2512  
-					<string>211.ImportedFromIB2</string>
2513  
-					<string>212.IBEditorWindowLastContentRect</string>
2514 2553
 					<string>212.IBPluginDependency</string>
2515  
-					<string>212.ImportedFromIB2</string>
2516  
-					<string>212.editorWindowContentRectSynchronizationRect</string>
2517 2554
 					<string>213.IBPluginDependency</string>
2518  
-					<string>213.ImportedFromIB2</string>
2519 2555
 					<string>214.IBPluginDependency</string>
2520  
-					<string>214.ImportedFromIB2</string>
2521 2556
 					<string>215.IBPluginDependency</string>
2522  
-					<string>215.ImportedFromIB2</string>
2523 2557
 					<string>216.IBPluginDependency</string>
2524  
-					<string>216.ImportedFromIB2</string>
2525 2558
 					<string>217.IBPluginDependency</string>
2526  
-					<string>217.ImportedFromIB2</string>
2527 2559
 					<string>218.IBPluginDependency</string>
2528  
-					<string>218.ImportedFromIB2</string>
2529 2560
 					<string>219.IBPluginDependency</string>
2530  
-					<string>219.ImportedFromIB2</string>
2531  
-					<string>220.IBEditorWindowLastContentRect</string>
2532 2561
 					<string>220.IBPluginDependency</string>
2533  
-					<string>220.ImportedFromIB2</string>
2534  
-					<string>220.editorWindowContentRectSynchronizationRect</string>
2535 2562
 					<string>221.IBPluginDependency</string>
2536  
-					<string>221.ImportedFromIB2</string>
2537 2563
 					<string>23.IBPluginDependency</string>
2538  
-					<string>23.ImportedFromIB2</string>
2539 2564
 					<string>236.IBPluginDependency</string>
2540  
-					<string>236.ImportedFromIB2</string>
2541 2565
 					<string>239.IBPluginDependency</string>
2542  
-					<string>239.ImportedFromIB2</string>
2543  
-					<string>24.IBEditorWindowLastContentRect</string>
2544 2566
 					<string>24.IBPluginDependency</string>
2545  
-					<string>24.ImportedFromIB2</string>
2546  
-					<string>24.editorWindowContentRectSynchronizationRect</string>
2547  
-					<string>29.IBEditorWindowLastContentRect</string>
2548 2567
 					<string>29.IBPluginDependency</string>
2549  
-					<string>29.ImportedFromIB2</string>
2550  
-					<string>29.WindowOrigin</string>
2551  
-					<string>29.editorWindowContentRectSynchronizationRect</string>
2552 2568
 					<string>346.IBPluginDependency</string>
2553  
-					<string>346.ImportedFromIB2</string>
2554 2569
 					<string>348.IBPluginDependency</string>
2555  
-					<string>348.ImportedFromIB2</string>
2556  
-					<string>349.IBEditorWindowLastContentRect</string>
2557 2570
 					<string>349.IBPluginDependency</string>
2558  
-					<string>349.ImportedFromIB2</string>
2559  
-					<string>349.editorWindowContentRectSynchronizationRect</string>
2560 2571
 					<string>350.IBPluginDependency</string>
2561  
-					<string>350.ImportedFromIB2</string>
2562 2572
 					<string>351.IBPluginDependency</string>
2563  
-					<string>351.ImportedFromIB2</string>
2564 2573
 					<string>354.IBPluginDependency</string>
2565  
-					<string>354.ImportedFromIB2</string>
2566 2574
 					<string>419.IBPluginDependency</string>
2567 2575
 					<string>449.IBPluginDependency</string>
2568  
-					<string>450.IBEditorWindowLastContentRect</string>
2569 2576
 					<string>450.IBPluginDependency</string>
2570 2577
 					<string>451.IBPluginDependency</string>
2571 2578
 					<string>452.IBPluginDependency</string>
@@ -2577,13 +2584,10 @@
2577 2584
 					<string>464.IBPluginDependency</string>
2578 2585
 					<string>465.IBPluginDependency</string>
2579 2586
 					<string>491.IBPluginDependency</string>
2580  
-					<string>492.IBEditorWindowLastContentRect</string>
2581 2587
 					<string>492.IBPluginDependency</string>
2582 2588
 					<string>493.IBPluginDependency</string>
2583 2589
 					<string>5.IBPluginDependency</string>
2584  
-					<string>5.ImportedFromIB2</string>
2585 2590
 					<string>530.IBPluginDependency</string>
2586  
-					<string>530.ImportedFromIB2</string>
2587 2591
 					<string>532.IBPluginDependency</string>
2588 2592
 					<string>532.NSWindowTemplate.visibleAtLaunch</string>
2589 2593
 					<string>533.IBPluginDependency</string>
@@ -2602,11 +2606,7 @@
2602 2606
 					<string>558.IBPluginDependency</string>
2603 2607
 					<string>559.IBPluginDependency</string>
2604 2608
 					<string>56.IBPluginDependency</string>
2605  
-					<string>56.ImportedFromIB2</string>
2606  
-					<string>57.IBEditorWindowLastContentRect</string>
2607 2609
 					<string>57.IBPluginDependency</string>
2608  
-					<string>57.ImportedFromIB2</string>
2609  
-					<string>57.editorWindowContentRectSynchronizationRect</string>
2610 2610
 					<string>573.IBPluginDependency</string>
2611 2611
 					<string>574.IBPluginDependency</string>
2612 2612
 					<string>575.IBPluginDependency</string>
@@ -2614,36 +2614,25 @@
2614 2614
 					<string>578.IBPluginDependency</string>
2615 2615
 					<string>579.IBPluginDependency</string>
2616 2616
 					<string>58.IBPluginDependency</string>
2617  
-					<string>58.ImportedFromIB2</string>
2618 2617
 					<string>583.IBPluginDependency</string>
2619 2618
 					<string>584.IBPluginDependency</string>
2620 2619
 					<string>585.IBPluginDependency</string>
  2620
+					<string>587.IBPluginDependency</string>
  2621
+					<string>588.IBPluginDependency</string>
  2622
+					<string>589.IBPluginDependency</string>
  2623
+					<string>593.IBPluginDependency</string>
2621 2624
 					<string>72.IBPluginDependency</string>
2622  
-					<string>72.ImportedFromIB2</string>
2623 2625
 					<string>73.IBPluginDependency</string>
2624  
-					<string>73.ImportedFromIB2</string>
2625 2626
 					<string>74.IBPluginDependency</string>
2626  
-					<string>74.ImportedFromIB2</string>
2627 2627
 					<string>75.IBPluginDependency</string>
2628  
-					<string>75.ImportedFromIB2</string>
2629 2628
 					<string>77.IBPluginDependency</string>
2630  
-					<string>77.ImportedFromIB2</string>
2631 2629
 					<string>78.IBPluginDependency</string>
2632  
-					<string>78.ImportedFromIB2</string>
2633 2630
 					<string>79.IBPluginDependency</string>
2634  
-					<string>79.ImportedFromIB2</string>
2635 2631
 					<string>80.IBPluginDependency</string>
2636  
-					<string>80.ImportedFromIB2</string>
2637  
-					<string>81.IBEditorWindowLastContentRect</string>
2638 2632
 					<string>81.IBPluginDependency</string>
2639  
-					<string>81.ImportedFromIB2</string>
2640  
-					<string>81.editorWindowContentRectSynchronizationRect</string>
2641 2633
 					<string>82.IBPluginDependency</string>
2642  
-					<string>82.ImportedFromIB2</string>
2643 2634
 					<string>83.IBPluginDependency</string>
2644  
-					<string>83.ImportedFromIB2</string>
2645 2635
 					<string>92.IBPluginDependency</string>
2646  
-					<string>92.ImportedFromIB2</string>
2647 2636
 				</object>
2648 2637
 				<object class="NSMutableArray" key="dict.values">
2649 2638
 					<bool key="EncodedWithXMLCoder">YES</bool>
@@ -2651,131 +2640,60 @@
2651 2640
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2652 2641
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2653 2642
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2654  
-					<integer value="1"/>
2655 2643
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2656  
-					<integer value="1"/>
2657 2644
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2658  
-					<integer value="1"/>
2659  
-					<string>{{522, 812}, {146, 23}}</string>
2660 2645
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2661  
-					<integer value="1"/>
2662 2646
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2663  
-					<integer value="1"/>
2664 2647
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2665  
-					<integer value="1"/>
2666  
-					<string>{{436, 809}, {64, 6}}</string>
2667 2648
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2668  
-					<integer value="1"/>
2669 2649
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2670  
-					<integer value="1"/>
2671 2650
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2672  
-					<integer value="1"/>
2673 2651
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2674  
-					<integer value="1"/>
2675 2652
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2676  
-					<integer value="1"/>
2677 2653
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2678  
-					<integer value="1"/>
2679 2654
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2680  
-					<integer value="1"/>
2681 2655
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2682  
-					<integer value="1"/>
2683 2656
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2684  
-					<integer value="1"/>
2685 2657
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2686  
-					<integer value="1"/>
2687 2658
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2688  
-					<integer value="1"/>
2689 2659
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2690  
-					<integer value="1"/>
2691 2660
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2692  
-					<integer value="1"/>
2693 2661
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2694  
-					<integer value="1"/>
2695  
-					<string>{{656, 201}, {275, 113}}</string>
2696 2662
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2697  
-					<integer value="1"/>
2698  
-					<string>{{608, 612}, {275, 83}}</string>
2699 2663
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2700  
-					<integer value="1"/>
2701 2664
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2702  
-					<integer value="1"/>
2703 2665
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2704  
-					<integer value="1"/>
2705 2666
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2706  
-					<integer value="1"/>
2707  
-					<string>{{581, 83}, {255, 303}}</string>
2708 2667
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2709  
-					<integer value="1"/>
2710  
-					<string>{{197, 734}, {243, 243}}</string>
2711 2668
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2712  
-					<integer value="1"/>
2713 2669
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2714  
-					<integer value="1"/>
2715 2670
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2716  
-					<integer value="1"/>
2717 2671
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2718  
-					<integer value="1"/>
2719 2672
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2720  
-					<integer value="1"/>
2721 2673
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2722  
-					<integer value="1"/>
2723  
-					<string>{{656, 211}, {164, 43}}</string>
2724 2674
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2725  
-					<integer value="1"/>
2726  
-					<string>{{608, 612}, {167, 43}}</string>
2727 2675
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2728  
-					<integer value="1"/>
2729 2676
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2730  
-					<integer value="1"/>
2731 2677
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2732  
-					<integer value="1"/>
2733 2678
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2734  
-					<integer value="1"/>
2735 2679
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2736  
-					<integer value="1"/>
2737 2680
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2738  
-					<integer value="1"/>
2739 2681
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2740  
-					<integer value="1"/>
2741  
-					<string>{{642, 251}, {238, 103}}</string>
2742 2682
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2743  
-					<integer value="1"/>
2744  
-					<string>{{608, 612}, {241, 103}}</string>
2745 2683
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2746  
-					<integer value="1"/>
2747 2684
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2748  
-					<integer value="1"/>
2749 2685
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2750  
-					<integer value="1"/>
2751 2686
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2752  
-					<integer value="1"/>
2753  
-					<string>{{784, 313}, {194, 73}}</string>
2754 2687
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2755  
-					<integer value="1"/>
2756  
-					<string>{{525, 802}, {197, 73}}</string>
2757  
-					<string>{{404, 386}, {469, 20}}</string>
2758 2688
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2759  
-					<integer value="1"/>
2760  
-					<string>{74, 862}</string>
2761  
-					<string>{{11, 977}, {478, 20}}</string>
2762 2689
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2763  
-					<integer value="1"/>
2764 2690
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2765  
-					<integer value="1"/>
2766  
-					<string>{{642, 181}, {220, 133}}</string>
2767 2691
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2768  
-					<integer value="1"/>
2769  
-					<string>{{608, 612}, {215, 63}}</string>
2770 2692
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2771  
-					<integer value="1"/>
2772 2693
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2773  
-					<integer value="1"/>
2774 2694
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2775  
-					<integer value="1"/>
2776 2695
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2777 2696
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2778  
-					<string>{{786, 257}, {170, 63}}</string>
2779 2697
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2780 2698
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2781 2699
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -2787,13 +2705,10 @@
2787 2705
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2788 2706
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2789 2707
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2790  
-					<string>{{855, 363}, {246, 23}}</string>
2791 2708
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2792 2709
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2793 2710
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2794  
-					<integer value="1"/>
2795 2711
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2796  
-					<boolean value="YES"/>
2797 2712
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2798 2713
 					<boolean value="NO"/>
2799 2714
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -2812,11 +2727,7 @@
2812 2727
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2813 2728
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2814 2729
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2815  
-					<integer value="1"/>
2816  
-					<string>{{416, 203}, {275, 183}}</string>
2817 2730
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2818  
-					<integer value="1"/>
2819  
-					<string>{{23, 794}, {245, 183}}</string>
2820 2731
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2821 2732
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2822 2733
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -2824,36 +2735,25 @@
2824 2735
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2825 2736
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2826 2737
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2827  
-					<integer value="1"/>
2828 2738
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2829 2739
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2830 2740
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2831 2741
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2832  
-					<integer value="1"/>
2833 2742
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2834  
-					<integer value="1"/>
2835 2743
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2836  
-					<integer value="1"/>
2837 2744
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2838  
-					<integer value="1"/>
2839 2745
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2840  
-					<integer value="1"/>
2841 2746
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2842  
-					<integer value="1"/>
2843 2747
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2844  
-					<integer value="1"/>
2845 2748
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2846  
-					<integer value="1"/>
2847  
-					<string>{{582, 183}, {196, 203}}</string>
2848 2749
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2849  
-					<integer value="1"/>
2850  
-					<string>{{155, 774}, {199, 203}}</string>
2851 2750
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2852  
-					<integer value="1"/>
2853 2751
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2854  
-					<integer value="1"/>
2855 2752
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2856  
-					<integer value="1"/>
  2753
+					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  2754
+					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  2755
+					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
  2756
+					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
2857 2757
 				</object>
2858 2758
 			</object>
2859 2759
 			<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -2868,7 +2768,7 @@
2868 2768
 				<reference key="dict.values" ref="0"/>
2869 2769
 			</object>
2870 2770
 			<nil key="sourceID"/>
2871  
-			<int key="maxID">586</int>
  2771
+			<int key="maxID">595</int>
2872 2772
 		</object>
2873 2773
 		<object class="IBClassDescriber" key="IBDocument.Classes">
2874 2774
 			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -2892,6 +2792,25 @@
2892 2792
 					</object>
2893 2793
 				</object>
2894 2794
 				<object class="IBPartialClassDescription">
  2795
+					<string key="className">MLAppDelegate</string>
  2796
+					<string key="superclassName">NSObject</string>
  2797
+					<object class="NSMutableDictionary" key="outlets">
  2798
+						<string key="NS.key.0">viewMenu</string>
  2799
+						<string key="NS.object.0">NSMenuItem</string>
  2800
+					</object>
  2801
+					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
  2802
+						<string key="NS.key.0">viewMenu</string>
  2803
+						<object class="IBToOneOutletInfo" key="NS.object.0">
  2804
+							<string key="name">viewMenu</string>
  2805
+							<string key="candidateClassName">NSMenuItem</string>
  2806
+						</object>
  2807
+					</object>
  2808
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
  2809
+						<string key="majorKey">IBProjectSource</string>
  2810
+						<string key="minorKey">./Classes/MLAppDelegate.h</string>
  2811
+					</object>
  2812
+				</object>
  2813
+				<object class="IBPartialClassDescription">
2895 2814
 					<string key="className">MyDocument</string>
2896 2815
 					<string key="superclassName">NSDocument</string>
2897 2816
 					<object class="NSMutableDictionary" key="actions">
@@ -2915,7 +2834,7 @@
2915 2834
 						<object class="NSMutableArray" key="dict.values">
2916 2835
 							<bool key="EncodedWithXMLCoder">YES</bool>
2917 2836
 							<string>WebView</string>
2918  
-							<string>NSTextView</string>
  2837
+							<string>EditPaneTextView</string>
2919 2838
 						</object>
2920 2839
 					</object>
2921 2840
 					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
@@ -2933,7 +2852,7 @@
2933 2852
 							</object>
2934 2853
 							<object class="IBToOneOutletInfo">
2935 2854
 								<string key="name">markdownSourceTextView</string>
2936  
-								<string key="candidateClassName">NSTextView</string>
  2855
+								<string key="candidateClassName">EditPaneTextView</string>
2937 2856
 							</object>
2938 2857
 						</object>
2939 2858
 					</object>
@@ -3012,70 +2931,6 @@
3012 2931
 				<object class="IBPartialClassDescription">
3013 2932
 					<string key="className">PreferencesController</string>
3014 2933
 					<string key="superclassName">NSObject</string>
3015  
-					<object class="NSMutableDictionary" key="actions">
3016  
-						<bool key="EncodedWithXMLCoder">YES</bool>
3017  
-						<object class="NSArray" key="dict.sortedKeys">
3018  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3019  
-							<string>resetEditPanePreferences:</string>
3020  
-							<string>showFonts:</string>
3021  
-						</object>
3022  
-						<object class="NSMutableArray" key="dict.values">
3023  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3024  
-							<string>id</string>
3025  
-							<string>id</string>
3026  
-						</object>
3027  
-					</object>
3028  
-					<object class="NSMutableDictionary" key="actionInfosByName">
3029  
-						<bool key="EncodedWithXMLCoder">YES</bool>
3030  
-						<object class="NSArray" key="dict.sortedKeys">
3031  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3032  
-							<string>resetEditPanePreferences:</string>
3033  
-							<string>showFonts:</string>
3034  
-						</object>
3035  
-						<object class="NSMutableArray" key="dict.values">
3036  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3037  
-							<object class="IBActionInfo">
3038  
-								<string key="name">resetEditPanePreferences:</string>
3039  
-								<string key="candidateClassName">id</string>
3040  
-							</object>
3041  
-							<object class="IBActionInfo">
3042  
-								<string key="name">showFonts:</string>
3043  
-								<string key="candidateClassName">id</string>
3044  
-							</object>
3045  
-						</object>
3046  
-					</object>
3047  
-					<object class="NSMutableDictionary" key="outlets">
3048  
-						<bool key="EncodedWithXMLCoder">YES</bool>
3049  
-						<object class="NSArray" key="dict.sortedKeys">
3050  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3051  
-							<string>fontPreviewField</string>
3052  
-							<string>prefWindow</string>
3053  
-						</object>
3054  
-						<object class="NSMutableArray" key="dict.values">
3055  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3056  
-							<string>NSTextField</string>
3057  
-							<string>NSWindow</string>
3058  
-						</object>
3059  
-					</object>
3060  
-					<object class="NSMutableDictionary" key="toOneOutletInfosByName">
3061  
-						<bool key="EncodedWithXMLCoder">YES</bool>
3062  
-						<object class="NSArray" key="dict.sortedKeys">
3063  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3064  
-							<string>fontPreviewField</string>
3065  
-							<string>prefWindow</string>
3066  
-						</object>
3067  
-						<object class="NSMutableArray" key="dict.values">
3068  
-							<bool key="EncodedWithXMLCoder">YES</bool>
3069  
-							<object class="IBToOneOutletInfo">
3070  
-								<string key="name">fontPreviewField</string>
3071  
-								<string key="candidateClassName">NSTextField</string>
3072  
-							</object>
3073  
-							<object class="IBToOneOutletInfo">
3074  
-								<string key="name">prefWindow</string>
3075  
-								<string key="candidateClassName">NSWindow</string>
3076  
-							</object>
3077  
-						</object>
3078  
-					</object>
3079 2934
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
3080 2935
 						<string key="majorKey">IBProjectSource</string>
3081 2936
 						<string key="minorKey">./Classes/PreferencesController.h</string>
15  MLAppDelegate.h
... ...
@@ -0,0 +1,15 @@
  1
+//
  2
+//  MLAppDelegate.m
  3
+//  MarkdownLive
  4
+//
  5
+//  Created by David Beck on 9/23/11.
  6
+//  Copyright 2011 David Beck. Some rights reserved: <http://opensource.org/licenses/mit-license.php>
  7
+//
  8
+
  9
+#import <Foundation/Foundation.h>
  10
+
  11
+@interface MLAppDelegate : NSObject <NSApplicationDelegate>
  12
+
  13
+@property (nonatomic, assign) IBOutlet NSMenuItem *viewMenu;
  14
+
  15
+@end
22  MLAppDelegate.m
... ...
@@ -0,0 +1,22 @@
  1
+//
  2
+//  MLAppDelegate.m
  3
+//  MarkdownLive
  4
+//
  5
+//  Created by David Beck on 9/23/11.
  6
+//  Copyright 2011 David Beck. Some rights reserved: <http://opensource.org/licenses/mit-license.php>
  7
+//
  8
+
  9
+#import "MLAppDelegate.h"
  10
+
  11
+@implementation MLAppDelegate
  12
+
  13
+@synthesize viewMenu = _viewMenu;
  14
+
  15
+- (void)applicationDidFinishLaunching:(NSNotification *)notification
  16
+{
  17
+	if ([NSWindow instancesRespondToSelector:@selector(toggleFullScreen:)]) {
  18
+		[[NSApp mainMenu] insertItem:self.viewMenu atIndex:3];
  19
+	}
  20
+}
  21
+
  22
+@end
6  MarkdownLive.xcodeproj/project.pbxproj
@@ -7,6 +7,7 @@
7 7
 	objects = {
8 8
 
9 9
 /* Begin PBXBuildFile section */
  10
+		11EF12E0142D24BB0086C77F /* MLAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 11EF12DF142D24BB0086C77F /* MLAppDelegate.m */; };
10 11
 		1DDD582C0DA1D0D100B32029 /* MyDocument.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD58280DA1D0D100B32029 /* MyDocument.xib */; };
11 12
 		1DDD582D0DA1D0D100B32029 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1DDD582A0DA1D0D100B32029 /* MainMenu.xib */; };
12 13
 		795F6C87105D70A300D1F90A /* MarkdownLiveApp.icns in Resources */ = {isa = PBXBuildFile; fileRef = 795F6C86105D70A300D1F90A /* MarkdownLiveApp.icns */; };
@@ -72,6 +73,8 @@
72 73
 /* Begin PBXFileReference section */
73 74
 		089C1660FE840EACC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
74 75
 		1058C7A7FEA54F5311CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
  76
+		11EF12DE142D24BB0086C77F /* MLAppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MLAppDelegate.h; sourceTree = "<group>"; };
  77
+		11EF12DF142D24BB0086C77F /* MLAppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MLAppDelegate.m; sourceTree = "<group>"; };
75 78
 		13E42FBA07B3F13500E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
76 79
 		1DDD58290DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MyDocument.xib; sourceTree = "<group>"; };
77 80
 		1DDD582B0DA1D0D100B32029 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
@@ -203,6 +206,8 @@
203 206
 		2A37F4ABFDCFA73011CA2CEA /* Classes */ = {
204 207
 			isa = PBXGroup;
205 208
 			children = (
  209
+				11EF12DE142D24BB0086C77F /* MLAppDelegate.h */,
  210
+				11EF12DF142D24BB0086C77F /* MLAppDelegate.m */,
206 211
 				3DD1618A1431FD030003F6C7 /* EditPaneLayoutManager.h */,
207 212
 				ABF75D6E13CDEBBA00B5E7AB /* EditPaneLayoutManager.m */,
208 213
 				3DD161891431FCFC0003F6C7 /* EditPaneTextView.h */,
@@ -411,6 +416,7 @@
411 416
 				ABF75D7513CDEBBB00B5E7AB /* EditPaneTypesetter.m in Sources */,
412 417
 				ABF75D7613CDEBBB00B5E7AB /* PreferencesController.m in Sources */,
413 418
 				ABF75D7713CDEBBB00B5E7AB /* PreferencesManager.m in Sources */,
  419
+				11EF12E0142D24BB0086C77F /* MLAppDelegate.m in Sources */,
414 420
 			);
415 421
 			runOnlyForDeploymentPostprocessing = 0;
416 422
 		};
5  MyDocument.m
@@ -72,6 +72,11 @@ - (void)windowControllerDidLoadNib:(NSWindowController *)controller_ {
72 72
 	[markdownSourceTextView updateFont];
73 73
 	[markdownSourceTextView updateColors];
74 74
 	
  75
+	if ([controller_.window respondsToSelector:@selector(toggleFullScreen:)]) {
  76
+		controller_.window.collectionBehavior &= !NSWindowCollectionBehaviorFullScreenAuxiliary;
  77
+		controller_.window.collectionBehavior |= NSWindowCollectionBehaviorFullScreenPrimary;
  78
+	}
  79
+	
75 80
 	[super windowControllerDidLoadNib:controller_];
76 81
 }
77 82
 

0 notes on commit cb0e3d2

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