Commits

Ivan Vučica  committed 1575aaf

Support for languages and for separate compile options for C, C++, Objective-C and Objective-C++.

  • Participants
  • Parent commits 94d6520

Comments (0)

Files changed (5)

File Editor Teksta/Editor Teksta-Info.plist

 			<key>NSDocumentClass</key>
 			<string>IVSourceCodeDocument</string>
 		</dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>m</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Objective-C Source Code</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>public.objective-c-source</string>
+			</array>
+			<key>NSDocumentClass</key>
+			<string>IVSourceCodeDocument</string>
+		</dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>cp</string>
+				<string>cpp</string>
+				<string>c++</string>
+				<string>cxx</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>C++ Source code</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>public.c-plus-plus-source</string>
+			</array>
+			<key>NSDocumentClass</key>
+			<string>IVSourceCodeDocument</string>
+		</dict>
+		<dict>
+			<key>CFBundleTypeExtensions</key>
+			<array>
+				<string>mm</string>
+			</array>
+			<key>CFBundleTypeName</key>
+			<string>Objective-C++ Source Code</string>
+			<key>CFBundleTypeRole</key>
+			<string>Editor</string>
+			<key>LSItemContentTypes</key>
+			<array>
+				<string>public.objective-c-plus-plus-source</string>
+			</array>
+			<key>NSDocumentClass</key>
+			<string>IVSourceCodeDocument</string>
+		</dict>
 	</array>
 	<key>CFBundleExecutable</key>
 	<string>${EXECUTABLE_NAME}</string>
 				</array>
 			</dict>
 		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.plain-text</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>Objective-C Source Code</string>
+			<key>UTTypeIdentifier</key>
+			<string>public.objective-c-source</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>m</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>text/x-objective-c</string>
+				</array>
+			</dict>
+		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.plain-text</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>C++ Source Code</string>
+			<key>UTTypeIdentifier</key>
+			<string>public.c-plus-plus-source</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>cpp</string>
+					<string>c++</string>
+					<string>cp</string>
+					<string>cxx</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>text/x-c-plus-plus</string>
+				</array>
+			</dict>
+		</dict>
+		<dict>
+			<key>UTTypeConformsTo</key>
+			<array>
+				<string>public.plain-text</string>
+			</array>
+			<key>UTTypeDescription</key>
+			<string>Objective-C++ Source Code</string>
+			<key>UTTypeIdentifier</key>
+			<string>public.objective-c-plus-plus-source</string>
+			<key>UTTypeTagSpecification</key>
+			<dict>
+				<key>public.filename-extension</key>
+				<array>
+					<string>mm</string>
+				</array>
+				<key>public.mime-type</key>
+				<array>
+					<string>text/x-objective-c-plus-plus</string>
+				</array>
+			</dict>
+		</dict>
 	</array>
 </dict>
 </plist>

File Editor Teksta/IVAppDelegate.m

 {
     NSDictionary * dict;
     dict = [NSDictionary dictionaryWithObjectsAndKeys:
+            @"-x c "
+            "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk "
+            "-mmacosx-version-min=10.6 "
+            ,
+            @"compileOptionsC",
+            
+            
             @"-x objective-c "
             "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk "
+            "-mmacosx-version-min=10.6 "
+            ,
+            @"compileOptionsObjectiveC",
+            
+            
+            @"-x c++ "
+            "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk "
+            "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include "
+            "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/tr1 "
+            "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1 "
+            "-mmacosx-version-min=10.6 "
+            ,
+            @"compileOptionsCPlusPlus",
+            
+            
+            @"-x objective-c++ "
+            "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk "
             "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include "
             "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1/tr1 "
             "-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/c++/4.2.1 "
             "-mmacosx-version-min=10.6 "
             ,
-            @"compileOptions",
+            @"compileOptionsObjectiveCPlusPlus",
+            
+            
             nil];
     
     [[NSUserDefaults standardUserDefaults] registerDefaults:dict];

File Editor Teksta/IVPreferencesWindowController.xib

 			<string>NSCustomObject</string>
 			<string>NSScrollView</string>
 			<string>NSScroller</string>
+			<string>NSTabView</string>
+			<string>NSTabViewItem</string>
 			<string>NSTextField</string>
 			<string>NSTextFieldCell</string>
 			<string>NSTextView</string>
 					<reference key="NSNextResponder"/>
 					<int key="NSvFlags">256</int>
 					<array class="NSMutableArray" key="NSSubviews">
-						<object class="NSTextField" id="558569867">
+						<object class="NSTextField" id="814582193">
 							<reference key="NSNextResponder" ref="1006"/>
 							<int key="NSvFlags">268</int>
 							<string key="NSFrame">{{17, 233}, {114, 17}}</string>
 							<reference key="NSSuperview" ref="1006"/>
 							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView" ref="33764897"/>
+							<reference key="NSNextKeyView" ref="87712865"/>
 							<string key="NSReuseIdentifierKey">_NS:1535</string>
 							<bool key="NSEnabled">YES</bool>
-							<object class="NSTextFieldCell" key="NSCell" id="305009130">
+							<object class="NSTextFieldCell" key="NSCell" id="645047781">
 								<int key="NSCellFlags">68157504</int>
 								<int key="NSCellFlags2">272630784</int>
 								<string key="NSContents">Compile Options:</string>
-								<object class="NSFont" key="NSSupport">
+								<object class="NSFont" key="NSSupport" id="662098703">
 									<string key="NSName">LucidaGrande</string>
 									<double key="NSSize">13</double>
 									<int key="NSfFlags">1044</int>
 								</object>
 								<string key="NSCellIdentifier">_NS:1535</string>
-								<reference key="NSControlView" ref="558569867"/>
-								<object class="NSColor" key="NSBackgroundColor">
+								<reference key="NSControlView" ref="814582193"/>
+								<object class="NSColor" key="NSBackgroundColor" id="521646049">
 									<int key="NSColorSpace">6</int>
 									<string key="NSCatalogName">System</string>
 									<string key="NSColorName">controlColor</string>
-									<object class="NSColor" key="NSColor" id="204106758">
+									<object class="NSColor" key="NSColor" id="640850985">
 										<int key="NSColorSpace">3</int>
 										<bytes key="NSWhite">MC42NjY2NjY2NjY3AA</bytes>
 									</object>
 									<int key="NSColorSpace">6</int>
 									<string key="NSCatalogName">System</string>
 									<string key="NSColorName">controlTextColor</string>
-									<object class="NSColor" key="NSColor" id="1003192002">
+									<object class="NSColor" key="NSColor" id="715627310">
 										<int key="NSColorSpace">3</int>
 										<bytes key="NSWhite">MAA</bytes>
 									</object>
 							</object>
 							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
-						<object class="NSScrollView" id="33764897">
+						<object class="NSTabView" id="87712865">
 							<reference key="NSNextResponder" ref="1006"/>
-							<int key="NSvFlags">266</int>
-							<array class="NSMutableArray" key="NSSubviews">
-								<object class="NSClipView" id="435478039">
-									<reference key="NSNextResponder" ref="33764897"/>
-									<int key="NSvFlags">2304</int>
-									<array class="NSMutableArray" key="NSSubviews">
-										<object class="NSTextView" id="717196017">
-											<reference key="NSNextResponder" ref="435478039"/>
-											<int key="NSvFlags">2322</int>
-											<set class="NSMutableSet" key="NSDragTypes">
-												<string>Apple HTML pasteboard type</string>
-												<string>Apple PDF pasteboard type</string>
-												<string>Apple PICT pasteboard type</string>
-												<string>Apple PNG pasteboard type</string>
-												<string>Apple URL pasteboard type</string>
-												<string>CorePasteboardFlavorType 0x6D6F6F76</string>
-												<string>NSColor pasteboard type</string>
-												<string>NSFilenamesPboardType</string>
-												<string>NSStringPboardType</string>
-												<string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
-												<string>NeXT RTFD pasteboard type</string>
-												<string>NeXT Rich Text Format v1.0 pasteboard type</string>
-												<string>NeXT TIFF v4.0 pasteboard type</string>
-												<string>NeXT font pasteboard type</string>
-												<string>NeXT ruler pasteboard type</string>
-												<string>WebURLsWithTitlesPboardType</string>
-												<string>public.url</string>
-											</set>
-											<string key="NSFrameSize">{363, 96}</string>
-											<reference key="NSSuperview" ref="435478039"/>
-											<reference key="NSWindow"/>
-											<reference key="NSNextKeyView" ref="42014487"/>
-											<string key="NSReuseIdentifierKey">_NS:13</string>
-											<object class="NSTextContainer" key="NSTextContainer" id="814599084">
-												<object class="NSLayoutManager" key="NSLayoutManager">
-													<object class="NSTextStorage" key="NSTextStorage">
-														<object class="NSMutableString" key="NSString">
-															<characters key="NS.bytes"/>
+							<int key="NSvFlags">18</int>
+							<string key="NSFrame">{{13, 32}, {379, 199}}</string>
+							<reference key="NSSuperview" ref="1006"/>
+							<reference key="NSWindow"/>
+							<reference key="NSNextKeyView" ref="17540913"/>
+							<string key="NSReuseIdentifierKey">_NS:9</string>
+							<array class="NSMutableArray" key="NSTabViewItems">
+								<object class="NSTabViewItem" id="976337956">
+									<string key="NSIdentifier">1</string>
+									<object class="NSView" key="NSView" id="621071337">
+										<nil key="NSNextResponder"/>
+										<int key="NSvFlags">256</int>
+										<array class="NSMutableArray" key="NSSubviews">
+											<object class="NSScrollView" id="120131727">
+												<reference key="NSNextResponder" ref="621071337"/>
+												<int key="NSvFlags">274</int>
+												<array class="NSMutableArray" key="NSSubviews">
+													<object class="NSClipView" id="928944035">
+														<reference key="NSNextResponder" ref="120131727"/>
+														<int key="NSvFlags">2304</int>
+														<array class="NSMutableArray" key="NSSubviews">
+															<object class="NSTextView" id="1071612464">
+																<reference key="NSNextResponder" ref="928944035"/>
+																<int key="NSvFlags">2322</int>
+																<string key="NSFrameSize">{323, 131}</string>
+																<reference key="NSSuperview" ref="928944035"/>
+																<reference key="NSNextKeyView" ref="826942590"/>
+																<string key="NSReuseIdentifierKey">_NS:13</string>
+																<object class="NSTextContainer" key="NSTextContainer" id="563065932">
+																	<object class="NSLayoutManager" key="NSLayoutManager">
+																		<object class="NSTextStorage" key="NSTextStorage">
+																			<object class="NSMutableString" key="NSString">
+																				<characters key="NS.bytes"/>
+																			</object>
+																			<nil key="NSDelegate"/>
+																		</object>
+																		<array class="NSMutableArray" key="NSTextContainers">
+																			<reference ref="563065932"/>
+																		</array>
+																		<int key="NSLMFlags">166</int>
+																		<nil key="NSDelegate"/>
+																	</object>
+																	<reference key="NSTextView" ref="1071612464"/>
+																	<double key="NSWidth">323</double>
+																	<int key="NSTCFlags">1</int>
+																</object>
+																<object class="NSTextViewSharedData" key="NSSharedData">
+																	<int key="NSFlags">11587</int>
+																	<int key="NSTextCheckingTypes">0</int>
+																	<nil key="NSMarkedAttributes"/>
+																	<object class="NSColor" key="NSBackgroundColor" id="664164639">
+																		<int key="NSColorSpace">3</int>
+																		<bytes key="NSWhite">MQA</bytes>
+																	</object>
+																	<dictionary key="NSSelectedAttributes">
+																		<object class="NSColor" key="NSBackgroundColor" id="845252014">
+																			<int key="NSColorSpace">6</int>
+																			<string key="NSCatalogName">System</string>
+																			<string key="NSColorName">selectedTextBackgroundColor</string>
+																			<reference key="NSColor" ref="640850985"/>
+																		</object>
+																		<object class="NSColor" key="NSColor" id="1057668769">
+																			<int key="NSColorSpace">6</int>
+																			<string key="NSCatalogName">System</string>
+																			<string key="NSColorName">selectedTextColor</string>
+																			<reference key="NSColor" ref="715627310"/>
+																		</object>
+																	</dictionary>
+																	<reference key="NSInsertionColor" ref="715627310"/>
+																	<dictionary key="NSLinkAttributes">
+																		<object class="NSColor" key="NSColor" id="667825899">
+																			<int key="NSColorSpace">1</int>
+																			<bytes key="NSRGB">MCAwIDEAA</bytes>
+																		</object>
+																		<object class="NSCursor" key="NSCursor" id="45163597">
+																			<string key="NSHotSpot">{8, -8}</string>
+																			<int key="NSCursorType">13</int>
+																		</object>
+																		<integer value="1" key="NSUnderline"/>
+																	</dictionary>
+																	<nil key="NSDefaultParagraphStyle"/>
+																	<nil key="NSTextFinder"/>
+																	<int key="NSPreferredTextFinderStyle">1</int>
+																</object>
+																<int key="NSTVFlags">6</int>
+																<string key="NSMaxSize">{463, 10000000}</string>
+																<nil key="NSDelegate"/>
+															</object>
+														</array>
+														<string key="NSFrame">{{1, 1}, {323, 131}}</string>
+														<reference key="NSSuperview" ref="120131727"/>
+														<reference key="NSNextKeyView" ref="1071612464"/>
+														<string key="NSReuseIdentifierKey">_NS:11</string>
+														<reference key="NSDocView" ref="1071612464"/>
+														<reference key="NSBGColor" ref="664164639"/>
+														<object class="NSCursor" key="NSCursor">
+															<string key="NSHotSpot">{4, 5}</string>
+															<object class="NSImage" key="NSImage">
+																<int key="NSImageFlags">79691776</int>
+																<array key="NSReps">
+																	<array>
+																		<integer value="5"/>
+																		<object class="NSURL">
+																			<nil key="NS.base"/>
+																			<string key="NS.relative">file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff</string>
+																		</object>
+																	</array>
+																</array>
+																<object class="NSColor" key="NSColor" id="752156135">
+																	<int key="NSColorSpace">3</int>
+																	<bytes key="NSWhite">MCAwAA</bytes>
+																</object>
+															</object>
 														</object>
-														<nil key="NSDelegate"/>
+														<int key="NScvFlags">4</int>
 													</object>
-													<array class="NSMutableArray" key="NSTextContainers">
-														<reference ref="814599084"/>
-													</array>
-													<int key="NSLMFlags">166</int>
-													<nil key="NSDelegate"/>
-												</object>
-												<reference key="NSTextView" ref="717196017"/>
-												<double key="NSWidth">363</double>
-												<int key="NSTCFlags">1</int>
-											</object>
-											<object class="NSTextViewSharedData" key="NSSharedData">
-												<int key="NSFlags">11587</int>
-												<int key="NSTextCheckingTypes">0</int>
-												<nil key="NSMarkedAttributes"/>
-												<object class="NSColor" key="NSBackgroundColor" id="1004947751">
-													<int key="NSColorSpace">3</int>
-													<bytes key="NSWhite">MQA</bytes>
-												</object>
-												<dictionary key="NSSelectedAttributes">
-													<object class="NSColor" key="NSBackgroundColor">
-														<int key="NSColorSpace">6</int>
-														<string key="NSCatalogName">System</string>
-														<string key="NSColorName">selectedTextBackgroundColor</string>
-														<reference key="NSColor" ref="204106758"/>
+													<object class="NSScroller" id="826942590">
+														<reference key="NSNextResponder" ref="120131727"/>
+														<int key="NSvFlags">256</int>
+														<string key="NSFrame">{{308, 1}, {16, 131}}</string>
+														<reference key="NSSuperview" ref="120131727"/>
+														<reference key="NSNextKeyView"/>
+														<string key="NSReuseIdentifierKey">_NS:83</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<reference key="NSTarget" ref="120131727"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.85256409645080566</double>
 													</object>
-													<object class="NSColor" key="NSColor">
-														<int key="NSColorSpace">6</int>
-														<string key="NSCatalogName">System</string>
-														<string key="NSColorName">selectedTextColor</string>
-														<reference key="NSColor" ref="1003192002"/>
+													<object class="NSScroller" id="314240252">
+														<reference key="NSNextResponder" ref="120131727"/>
+														<int key="NSvFlags">-2147483392</int>
+														<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
+														<reference key="NSSuperview" ref="120131727"/>
+														<reference key="NSNextKeyView" ref="928944035"/>
+														<string key="NSReuseIdentifierKey">_NS:33</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<int key="NSsFlags">1</int>
+														<reference key="NSTarget" ref="120131727"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.94565218687057495</double>
+													</object>
+												</array>
+												<string key="NSFrame">{{17, 17}, {325, 133}}</string>
+												<reference key="NSSuperview" ref="621071337"/>
+												<reference key="NSNextKeyView" ref="314240252"/>
+												<string key="NSReuseIdentifierKey">_NS:9</string>
+												<int key="NSsFlags">133138</int>
+												<reference key="NSVScroller" ref="826942590"/>
+												<reference key="NSHScroller" ref="314240252"/>
+												<reference key="NSContentView" ref="928944035"/>
+												<double key="NSMinMagnification">0.25</double>
+												<double key="NSMaxMagnification">4</double>
+												<double key="NSMagnification">1</double>
+											</object>
+										</array>
+										<string key="NSFrame">{{10, 33}, {359, 153}}</string>
+										<reference key="NSNextKeyView" ref="120131727"/>
+										<string key="NSReuseIdentifierKey">_NS:11</string>
+									</object>
+									<string key="NSLabel">C</string>
+									<reference key="NSColor" ref="521646049"/>
+									<reference key="NSTabView" ref="87712865"/>
+								</object>
+								<object class="NSTabViewItem" id="72911305">
+									<string key="NSIdentifier">2</string>
+									<object class="NSView" key="NSView" id="306417222">
+										<nil key="NSNextResponder"/>
+										<int key="NSvFlags">256</int>
+										<array class="NSMutableArray" key="NSSubviews">
+											<object class="NSScrollView" id="555937593">
+												<reference key="NSNextResponder" ref="306417222"/>
+												<int key="NSvFlags">274</int>
+												<array class="NSMutableArray" key="NSSubviews">
+													<object class="NSClipView" id="668429065">
+														<reference key="NSNextResponder" ref="555937593"/>
+														<int key="NSvFlags">2304</int>
+														<array class="NSMutableArray" key="NSSubviews">
+															<object class="NSTextView" id="401381746">
+																<reference key="NSNextResponder" ref="668429065"/>
+																<int key="NSvFlags">2322</int>
+																<string key="NSFrameSize">{323, 131}</string>
+																<reference key="NSSuperview" ref="668429065"/>
+																<reference key="NSNextKeyView" ref="714333577"/>
+																<string key="NSReuseIdentifierKey">_NS:13</string>
+																<object class="NSTextContainer" key="NSTextContainer" id="593926742">
+																	<object class="NSLayoutManager" key="NSLayoutManager">
+																		<object class="NSTextStorage" key="NSTextStorage">
+																			<object class="NSMutableString" key="NSString">
+																				<characters key="NS.bytes"/>
+																			</object>
+																			<nil key="NSDelegate"/>
+																		</object>
+																		<array class="NSMutableArray" key="NSTextContainers">
+																			<reference ref="593926742"/>
+																		</array>
+																		<int key="NSLMFlags">166</int>
+																		<nil key="NSDelegate"/>
+																	</object>
+																	<reference key="NSTextView" ref="401381746"/>
+																	<double key="NSWidth">323</double>
+																	<int key="NSTCFlags">1</int>
+																</object>
+																<object class="NSTextViewSharedData" key="NSSharedData">
+																	<int key="NSFlags">67120451</int>
+																	<int key="NSTextCheckingTypes">0</int>
+																	<nil key="NSMarkedAttributes"/>
+																	<reference key="NSBackgroundColor" ref="664164639"/>
+																	<dictionary key="NSSelectedAttributes">
+																		<reference key="NSBackgroundColor" ref="845252014"/>
+																		<reference key="NSColor" ref="1057668769"/>
+																	</dictionary>
+																	<reference key="NSInsertionColor" ref="715627310"/>
+																	<dictionary key="NSLinkAttributes">
+																		<reference key="NSColor" ref="667825899"/>
+																		<reference key="NSCursor" ref="45163597"/>
+																		<integer value="1" key="NSUnderline"/>
+																	</dictionary>
+																	<nil key="NSDefaultParagraphStyle"/>
+																	<nil key="NSTextFinder"/>
+																	<int key="NSPreferredTextFinderStyle">1</int>
+																</object>
+																<int key="NSTVFlags">6</int>
+																<string key="NSMaxSize">{463, 10000000}</string>
+																<nil key="NSDelegate"/>
+															</object>
+														</array>
+														<string key="NSFrame">{{1, 1}, {323, 131}}</string>
+														<reference key="NSSuperview" ref="555937593"/>
+														<reference key="NSNextKeyView" ref="401381746"/>
+														<string key="NSReuseIdentifierKey">_NS:11</string>
+														<reference key="NSDocView" ref="401381746"/>
+														<reference key="NSBGColor" ref="664164639"/>
+														<object class="NSCursor" key="NSCursor">
+															<string key="NSHotSpot">{4, 5}</string>
+															<object class="NSImage" key="NSImage">
+																<int key="NSImageFlags">79691776</int>
+																<array key="NSReps">
+																	<array>
+																		<integer value="5"/>
+																		<object class="NSURL">
+																			<nil key="NS.base"/>
+																			<string key="NS.relative">file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff</string>
+																		</object>
+																	</array>
+																</array>
+																<reference key="NSColor" ref="752156135"/>
+															</object>
+														</object>
+														<int key="NScvFlags">4</int>
 													</object>
-												</dictionary>
-												<reference key="NSInsertionColor" ref="1003192002"/>
-												<dictionary key="NSLinkAttributes">
-													<object class="NSColor" key="NSColor">
-														<int key="NSColorSpace">1</int>
-														<bytes key="NSRGB">MCAwIDEAA</bytes>
+													<object class="NSScroller" id="714333577">
+														<reference key="NSNextResponder" ref="555937593"/>
+														<int key="NSvFlags">256</int>
+														<string key="NSFrame">{{308, 1}, {16, 131}}</string>
+														<reference key="NSSuperview" ref="555937593"/>
+														<reference key="NSNextKeyView"/>
+														<string key="NSReuseIdentifierKey">_NS:83</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<reference key="NSTarget" ref="555937593"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.85256409645080566</double>
 													</object>
-													<object class="NSCursor" key="NSCursor">
-														<string key="NSHotSpot">{8, -8}</string>
-														<int key="NSCursorType">13</int>
+													<object class="NSScroller" id="229686425">
+														<reference key="NSNextResponder" ref="555937593"/>
+														<int key="NSvFlags">-2147483392</int>
+														<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
+														<reference key="NSSuperview" ref="555937593"/>
+														<reference key="NSNextKeyView" ref="668429065"/>
+														<string key="NSReuseIdentifierKey">_NS:33</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<int key="NSsFlags">1</int>
+														<reference key="NSTarget" ref="555937593"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.94565218687057495</double>
 													</object>
-													<integer value="1" key="NSUnderline"/>
-												</dictionary>
-												<nil key="NSDefaultParagraphStyle"/>
-												<nil key="NSTextFinder"/>
-												<int key="NSPreferredTextFinderStyle">1</int>
+												</array>
+												<string key="NSFrame">{{17, 17}, {325, 133}}</string>
+												<reference key="NSSuperview" ref="306417222"/>
+												<reference key="NSNextKeyView" ref="229686425"/>
+												<string key="NSReuseIdentifierKey">_NS:9</string>
+												<int key="NSsFlags">133138</int>
+												<reference key="NSVScroller" ref="714333577"/>
+												<reference key="NSHScroller" ref="229686425"/>
+												<reference key="NSContentView" ref="668429065"/>
+												<double key="NSMinMagnification">0.25</double>
+												<double key="NSMaxMagnification">4</double>
+												<double key="NSMagnification">1</double>
 											</object>
-											<int key="NSTVFlags">6</int>
-											<string key="NSMaxSize">{463, 10000000}</string>
-											<nil key="NSDelegate"/>
-										</object>
-									</array>
-									<string key="NSFrame">{{1, 1}, {363, 96}}</string>
-									<reference key="NSSuperview" ref="33764897"/>
-									<reference key="NSWindow"/>
-									<reference key="NSNextKeyView" ref="717196017"/>
-									<string key="NSReuseIdentifierKey">_NS:11</string>
-									<reference key="NSDocView" ref="717196017"/>
-									<reference key="NSBGColor" ref="1004947751"/>
-									<object class="NSCursor" key="NSCursor">
-										<string key="NSHotSpot">{4, 5}</string>
-										<object class="NSImage" key="NSImage">
-											<int key="NSImageFlags">79691776</int>
-											<array key="NSReps">
-												<array>
-													<integer value="5"/>
-													<object class="NSURL">
-														<nil key="NS.base"/>
-														<string key="NS.relative">file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff</string>
+										</array>
+										<string key="NSFrame">{{10, 33}, {359, 153}}</string>
+										<reference key="NSNextKeyView" ref="555937593"/>
+										<string key="NSReuseIdentifierKey">_NS:28</string>
+									</object>
+									<string key="NSLabel">Objective-C</string>
+									<reference key="NSColor" ref="521646049"/>
+									<reference key="NSTabView" ref="87712865"/>
+								</object>
+								<object class="NSTabViewItem" id="951464003">
+									<object class="NSView" key="NSView" id="495315869">
+										<nil key="NSNextResponder"/>
+										<int key="NSvFlags">256</int>
+										<array class="NSMutableArray" key="NSSubviews">
+											<object class="NSScrollView" id="235955710">
+												<reference key="NSNextResponder" ref="495315869"/>
+												<int key="NSvFlags">274</int>
+												<array class="NSMutableArray" key="NSSubviews">
+													<object class="NSClipView" id="596181187">
+														<reference key="NSNextResponder" ref="235955710"/>
+														<int key="NSvFlags">2304</int>
+														<array class="NSMutableArray" key="NSSubviews">
+															<object class="NSTextView" id="337021555">
+																<reference key="NSNextResponder" ref="596181187"/>
+																<int key="NSvFlags">2322</int>
+																<string key="NSFrameSize">{323, 131}</string>
+																<reference key="NSSuperview" ref="596181187"/>
+																<reference key="NSNextKeyView" ref="90236673"/>
+																<string key="NSReuseIdentifierKey">_NS:13</string>
+																<object class="NSTextContainer" key="NSTextContainer" id="323667575">
+																	<object class="NSLayoutManager" key="NSLayoutManager">
+																		<object class="NSTextStorage" key="NSTextStorage">
+																			<object class="NSMutableString" key="NSString">
+																				<characters key="NS.bytes"/>
+																			</object>
+																			<nil key="NSDelegate"/>
+																		</object>
+																		<array class="NSMutableArray" key="NSTextContainers">
+																			<reference ref="323667575"/>
+																		</array>
+																		<int key="NSLMFlags">166</int>
+																		<nil key="NSDelegate"/>
+																	</object>
+																	<reference key="NSTextView" ref="337021555"/>
+																	<double key="NSWidth">323</double>
+																	<int key="NSTCFlags">1</int>
+																</object>
+																<object class="NSTextViewSharedData" key="NSSharedData">
+																	<int key="NSFlags">67120451</int>
+																	<int key="NSTextCheckingTypes">0</int>
+																	<nil key="NSMarkedAttributes"/>
+																	<reference key="NSBackgroundColor" ref="664164639"/>
+																	<dictionary key="NSSelectedAttributes">
+																		<reference key="NSBackgroundColor" ref="845252014"/>
+																		<reference key="NSColor" ref="1057668769"/>
+																	</dictionary>
+																	<reference key="NSInsertionColor" ref="715627310"/>
+																	<dictionary key="NSLinkAttributes">
+																		<reference key="NSColor" ref="667825899"/>
+																		<reference key="NSCursor" ref="45163597"/>
+																		<integer value="1" key="NSUnderline"/>
+																	</dictionary>
+																	<nil key="NSDefaultParagraphStyle"/>
+																	<nil key="NSTextFinder"/>
+																	<int key="NSPreferredTextFinderStyle">1</int>
+																</object>
+																<int key="NSTVFlags">6</int>
+																<string key="NSMaxSize">{463, 10000000}</string>
+																<nil key="NSDelegate"/>
+															</object>
+														</array>
+														<string key="NSFrame">{{1, 1}, {323, 131}}</string>
+														<reference key="NSSuperview" ref="235955710"/>
+														<reference key="NSNextKeyView" ref="337021555"/>
+														<string key="NSReuseIdentifierKey">_NS:11</string>
+														<reference key="NSDocView" ref="337021555"/>
+														<reference key="NSBGColor" ref="664164639"/>
+														<object class="NSCursor" key="NSCursor">
+															<string key="NSHotSpot">{4, 5}</string>
+															<object class="NSImage" key="NSImage">
+																<int key="NSImageFlags">79691776</int>
+																<array key="NSReps">
+																	<array>
+																		<integer value="5"/>
+																		<object class="NSURL">
+																			<nil key="NS.base"/>
+																			<string key="NS.relative">file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff</string>
+																		</object>
+																	</array>
+																</array>
+																<reference key="NSColor" ref="752156135"/>
+															</object>
+														</object>
+														<int key="NScvFlags">4</int>
+													</object>
+													<object class="NSScroller" id="90236673">
+														<reference key="NSNextResponder" ref="235955710"/>
+														<int key="NSvFlags">256</int>
+														<string key="NSFrame">{{308, 1}, {16, 131}}</string>
+														<reference key="NSSuperview" ref="235955710"/>
+														<reference key="NSNextKeyView"/>
+														<string key="NSReuseIdentifierKey">_NS:83</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<reference key="NSTarget" ref="235955710"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.85256409645080566</double>
+													</object>
+													<object class="NSScroller" id="107776586">
+														<reference key="NSNextResponder" ref="235955710"/>
+														<int key="NSvFlags">-2147483392</int>
+														<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
+														<reference key="NSSuperview" ref="235955710"/>
+														<reference key="NSNextKeyView" ref="596181187"/>
+														<string key="NSReuseIdentifierKey">_NS:33</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<int key="NSsFlags">1</int>
+														<reference key="NSTarget" ref="235955710"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.94565218687057495</double>
 													</object>
 												</array>
-											</array>
-											<object class="NSColor" key="NSColor">
-												<int key="NSColorSpace">3</int>
-												<bytes key="NSWhite">MCAwAA</bytes>
+												<string key="NSFrame">{{17, 17}, {325, 133}}</string>
+												<reference key="NSSuperview" ref="495315869"/>
+												<reference key="NSNextKeyView" ref="107776586"/>
+												<string key="NSReuseIdentifierKey">_NS:9</string>
+												<int key="NSsFlags">133138</int>
+												<reference key="NSVScroller" ref="90236673"/>
+												<reference key="NSHScroller" ref="107776586"/>
+												<reference key="NSContentView" ref="596181187"/>
+												<double key="NSMinMagnification">0.25</double>
+												<double key="NSMaxMagnification">4</double>
+												<double key="NSMagnification">1</double>
 											</object>
-										</object>
+										</array>
+										<string key="NSFrame">{{10, 33}, {359, 153}}</string>
+										<reference key="NSNextKeyView" ref="235955710"/>
 									</object>
-									<int key="NScvFlags">4</int>
-								</object>
-								<object class="NSScroller" id="42014487">
-									<reference key="NSNextResponder" ref="33764897"/>
-									<int key="NSvFlags">256</int>
-									<string key="NSFrame">{{348, 1}, {16, 96}}</string>
-									<reference key="NSSuperview" ref="33764897"/>
-									<reference key="NSWindow"/>
-									<reference key="NSNextKeyView"/>
-									<string key="NSReuseIdentifierKey">_NS:83</string>
-									<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
-									<reference key="NSTarget" ref="33764897"/>
-									<string key="NSAction">_doScroller:</string>
-									<double key="NSCurValue">1</double>
-									<double key="NSPercent">0.85256409645080566</double>
+									<string key="NSLabel">C++</string>
+									<reference key="NSColor" ref="521646049"/>
+									<reference key="NSTabView" ref="87712865"/>
 								</object>
-								<object class="NSScroller" id="746256603">
-									<reference key="NSNextResponder" ref="33764897"/>
-									<int key="NSvFlags">-2147483392</int>
-									<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
-									<reference key="NSSuperview" ref="33764897"/>
-									<reference key="NSWindow"/>
-									<reference key="NSNextKeyView" ref="435478039"/>
-									<string key="NSReuseIdentifierKey">_NS:33</string>
-									<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
-									<int key="NSsFlags">1</int>
-									<reference key="NSTarget" ref="33764897"/>
-									<string key="NSAction">_doScroller:</string>
-									<double key="NSCurValue">1</double>
-									<double key="NSPercent">0.94565218687057495</double>
+								<object class="NSTabViewItem" id="265043842">
+									<object class="NSView" key="NSView" id="17540913">
+										<reference key="NSNextResponder" ref="87712865"/>
+										<int key="NSvFlags">256</int>
+										<array class="NSMutableArray" key="NSSubviews">
+											<object class="NSScrollView" id="944735915">
+												<reference key="NSNextResponder" ref="17540913"/>
+												<int key="NSvFlags">274</int>
+												<array class="NSMutableArray" key="NSSubviews">
+													<object class="NSClipView" id="457150284">
+														<reference key="NSNextResponder" ref="944735915"/>
+														<int key="NSvFlags">2304</int>
+														<array class="NSMutableArray" key="NSSubviews">
+															<object class="NSTextView" id="1020215216">
+																<reference key="NSNextResponder" ref="457150284"/>
+																<int key="NSvFlags">2322</int>
+																<set class="NSMutableSet" key="NSDragTypes">
+																	<string>Apple HTML pasteboard type</string>
+																	<string>Apple PDF pasteboard type</string>
+																	<string>Apple PICT pasteboard type</string>
+																	<string>Apple PNG pasteboard type</string>
+																	<string>Apple URL pasteboard type</string>
+																	<string>CorePasteboardFlavorType 0x6D6F6F76</string>
+																	<string>NSColor pasteboard type</string>
+																	<string>NSFilenamesPboardType</string>
+																	<string>NSStringPboardType</string>
+																	<string>NeXT Encapsulated PostScript v1.2 pasteboard type</string>
+																	<string>NeXT RTFD pasteboard type</string>
+																	<string>NeXT Rich Text Format v1.0 pasteboard type</string>
+																	<string>NeXT TIFF v4.0 pasteboard type</string>
+																	<string>NeXT font pasteboard type</string>
+																	<string>NeXT ruler pasteboard type</string>
+																	<string>WebURLsWithTitlesPboardType</string>
+																	<string>public.url</string>
+																</set>
+																<string key="NSFrameSize">{323, 131}</string>
+																<reference key="NSSuperview" ref="457150284"/>
+																<reference key="NSWindow"/>
+																<reference key="NSNextKeyView" ref="1036717624"/>
+																<string key="NSReuseIdentifierKey">_NS:13</string>
+																<object class="NSTextContainer" key="NSTextContainer" id="697936680">
+																	<object class="NSLayoutManager" key="NSLayoutManager">
+																		<object class="NSTextStorage" key="NSTextStorage">
+																			<object class="NSMutableString" key="NSString">
+																				<characters key="NS.bytes"/>
+																			</object>
+																			<nil key="NSDelegate"/>
+																		</object>
+																		<array class="NSMutableArray" key="NSTextContainers">
+																			<reference ref="697936680"/>
+																		</array>
+																		<int key="NSLMFlags">166</int>
+																		<nil key="NSDelegate"/>
+																	</object>
+																	<reference key="NSTextView" ref="1020215216"/>
+																	<double key="NSWidth">323</double>
+																	<int key="NSTCFlags">1</int>
+																</object>
+																<object class="NSTextViewSharedData" key="NSSharedData">
+																	<int key="NSFlags">67120451</int>
+																	<int key="NSTextCheckingTypes">0</int>
+																	<nil key="NSMarkedAttributes"/>
+																	<reference key="NSBackgroundColor" ref="664164639"/>
+																	<dictionary key="NSSelectedAttributes">
+																		<reference key="NSBackgroundColor" ref="845252014"/>
+																		<reference key="NSColor" ref="1057668769"/>
+																	</dictionary>
+																	<reference key="NSInsertionColor" ref="715627310"/>
+																	<dictionary key="NSLinkAttributes">
+																		<reference key="NSColor" ref="667825899"/>
+																		<reference key="NSCursor" ref="45163597"/>
+																		<integer value="1" key="NSUnderline"/>
+																	</dictionary>
+																	<nil key="NSDefaultParagraphStyle"/>
+																	<nil key="NSTextFinder"/>
+																	<int key="NSPreferredTextFinderStyle">1</int>
+																</object>
+																<int key="NSTVFlags">6</int>
+																<string key="NSMaxSize">{463, 10000000}</string>
+																<nil key="NSDelegate"/>
+															</object>
+														</array>
+														<string key="NSFrame">{{1, 1}, {323, 131}}</string>
+														<reference key="NSSuperview" ref="944735915"/>
+														<reference key="NSWindow"/>
+														<reference key="NSNextKeyView" ref="1020215216"/>
+														<string key="NSReuseIdentifierKey">_NS:11</string>
+														<reference key="NSDocView" ref="1020215216"/>
+														<reference key="NSBGColor" ref="664164639"/>
+														<object class="NSCursor" key="NSCursor">
+															<string key="NSHotSpot">{4, 5}</string>
+															<object class="NSImage" key="NSImage">
+																<int key="NSImageFlags">79691776</int>
+																<array key="NSReps">
+																	<array>
+																		<integer value="5"/>
+																		<object class="NSURL">
+																			<nil key="NS.base"/>
+																			<string key="NS.relative">file://localhost/Applications/Xcode.app/Contents/SharedFrameworks/DVTKit.framework/Resources/DVTIbeamCursor.tiff</string>
+																		</object>
+																	</array>
+																</array>
+																<reference key="NSColor" ref="752156135"/>
+															</object>
+														</object>
+														<int key="NScvFlags">4</int>
+													</object>
+													<object class="NSScroller" id="1036717624">
+														<reference key="NSNextResponder" ref="944735915"/>
+														<int key="NSvFlags">256</int>
+														<string key="NSFrame">{{308, 1}, {16, 131}}</string>
+														<reference key="NSSuperview" ref="944735915"/>
+														<reference key="NSWindow"/>
+														<reference key="NSNextKeyView"/>
+														<string key="NSReuseIdentifierKey">_NS:83</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<reference key="NSTarget" ref="944735915"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.85256409645080566</double>
+													</object>
+													<object class="NSScroller" id="1034588263">
+														<reference key="NSNextResponder" ref="944735915"/>
+														<int key="NSvFlags">-2147483392</int>
+														<string key="NSFrame">{{-100, -100}, {87, 18}}</string>
+														<reference key="NSSuperview" ref="944735915"/>
+														<reference key="NSWindow"/>
+														<reference key="NSNextKeyView" ref="457150284"/>
+														<string key="NSReuseIdentifierKey">_NS:33</string>
+														<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+														<int key="NSsFlags">1</int>
+														<reference key="NSTarget" ref="944735915"/>
+														<string key="NSAction">_doScroller:</string>
+														<double key="NSCurValue">1</double>
+														<double key="NSPercent">0.94565218687057495</double>
+													</object>
+												</array>
+												<string key="NSFrame">{{17, 17}, {325, 133}}</string>
+												<reference key="NSSuperview" ref="17540913"/>
+												<reference key="NSWindow"/>
+												<reference key="NSNextKeyView" ref="1034588263"/>
+												<string key="NSReuseIdentifierKey">_NS:9</string>
+												<int key="NSsFlags">133138</int>
+												<reference key="NSVScroller" ref="1036717624"/>
+												<reference key="NSHScroller" ref="1034588263"/>
+												<reference key="NSContentView" ref="457150284"/>
+												<double key="NSMinMagnification">0.25</double>
+												<double key="NSMaxMagnification">4</double>
+												<double key="NSMagnification">1</double>
+											</object>
+										</array>
+										<string key="NSFrame">{{10, 33}, {359, 153}}</string>
+										<reference key="NSSuperview" ref="87712865"/>
+										<reference key="NSWindow"/>
+										<reference key="NSNextKeyView" ref="944735915"/>
+									</object>
+									<string key="NSLabel">Objective-C++</string>
+									<reference key="NSColor" ref="521646049"/>
+									<reference key="NSTabView" ref="87712865"/>
 								</object>
 							</array>
-							<string key="NSFrame">{{20, 132}, {365, 98}}</string>
-							<reference key="NSSuperview" ref="1006"/>
-							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView" ref="746256603"/>
-							<string key="NSReuseIdentifierKey">_NS:9</string>
-							<int key="NSsFlags">133138</int>
-							<reference key="NSVScroller" ref="42014487"/>
-							<reference key="NSHScroller" ref="746256603"/>
-							<reference key="NSContentView" ref="435478039"/>
-							<double key="NSMinMagnification">0.25</double>
-							<double key="NSMaxMagnification">4</double>
-							<double key="NSMagnification">1</double>
+							<reference key="NSSelectedTabViewItem" ref="265043842"/>
+							<reference key="NSFont" ref="662098703"/>
+							<int key="NSTvFlags">0</int>
+							<bool key="NSAllowTruncatedLabels">YES</bool>
+							<bool key="NSDrawsBackground">YES</bool>
+							<array class="NSMutableArray" key="NSSubviews">
+								<reference ref="17540913"/>
+							</array>
 						</object>
 					</array>
 					<string key="NSFrameSize">{405, 270}</string>
 					<reference key="NSSuperview"/>
 					<reference key="NSWindow"/>
-					<reference key="NSNextKeyView" ref="558569867"/>
+					<reference key="NSNextKeyView" ref="814582193"/>
 				</object>
 				<string key="NSScreenRect">{{0, 0}, {1280, 778}}</string>
 				<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
 				<double key="NSContentBorderThicknessMinY">22</double>
 				<bool key="NSWindowIsRestorable">YES</bool>
 			</object>
-			<object class="NSUserDefaultsController" id="63646844">
+			<object class="NSUserDefaultsController" id="625009079">
 				<bool key="NSSharedInstance">YES</bool>
 			</object>
 		</array>
 				</object>
 				<object class="IBConnectionRecord">
 					<object class="IBBindingConnection" key="connection">
-						<string key="label">value: values.compileOptions</string>
-						<reference key="source" ref="717196017"/>
-						<reference key="destination" ref="63646844"/>
+						<string key="label">value: values.compileOptionsC</string>
+						<reference key="source" ref="1071612464"/>
+						<reference key="destination" ref="625009079"/>
+						<object class="NSNibBindingConnector" key="connector">
+							<reference key="NSSource" ref="1071612464"/>
+							<reference key="NSDestination" ref="625009079"/>
+							<string key="NSLabel">value: values.compileOptionsC</string>
+							<string key="NSBinding">value</string>
+							<string key="NSKeyPath">values.compileOptionsC</string>
+							<object class="NSDictionary" key="NSOptions">
+								<string key="NS.key.0">NSContinuouslyUpdatesValue</string>
+								<boolean value="YES" key="NS.object.0"/>
+							</object>
+							<int key="NSNibBindingConnectorVersion">2</int>
+						</object>
+					</object>
+					<int key="connectionID">25</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBBindingConnection" key="connection">
+						<string key="label">value: values.compileOptionsObjectiveC</string>
+						<reference key="source" ref="401381746"/>
+						<reference key="destination" ref="625009079"/>
+						<object class="NSNibBindingConnector" key="connector">
+							<reference key="NSSource" ref="401381746"/>
+							<reference key="NSDestination" ref="625009079"/>
+							<string key="NSLabel">value: values.compileOptionsObjectiveC</string>
+							<string key="NSBinding">value</string>
+							<string key="NSKeyPath">values.compileOptionsObjectiveC</string>
+							<object class="NSDictionary" key="NSOptions">
+								<string key="NS.key.0">NSContinuouslyUpdatesValue</string>
+								<boolean value="YES" key="NS.object.0"/>
+							</object>
+							<int key="NSNibBindingConnectorVersion">2</int>
+						</object>
+					</object>
+					<int key="connectionID">31</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBBindingConnection" key="connection">
+						<string key="label">value: values.compileOptionsCPlusPlus</string>
+						<reference key="source" ref="337021555"/>
+						<reference key="destination" ref="625009079"/>
 						<object class="NSNibBindingConnector" key="connector">
-							<reference key="NSSource" ref="717196017"/>
-							<reference key="NSDestination" ref="63646844"/>
-							<string key="NSLabel">value: values.compileOptions</string>
+							<reference key="NSSource" ref="337021555"/>
+							<reference key="NSDestination" ref="625009079"/>
+							<string key="NSLabel">value: values.compileOptionsCPlusPlus</string>
 							<string key="NSBinding">value</string>
-							<string key="NSKeyPath">values.compileOptions</string>
+							<string key="NSKeyPath">values.compileOptionsCPlusPlus</string>
 							<object class="NSDictionary" key="NSOptions">
 								<string key="NS.key.0">NSContinuouslyUpdatesValue</string>
 								<boolean value="YES" key="NS.object.0"/>
 							<int key="NSNibBindingConnectorVersion">2</int>
 						</object>
 					</object>
-					<int key="connectionID">15</int>
+					<int key="connectionID">37</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBBindingConnection" key="connection">
+						<string key="label">value: values.compileOptionsObjectiveCPlusPlus</string>
+						<reference key="source" ref="1020215216"/>
+						<reference key="destination" ref="625009079"/>
+						<object class="NSNibBindingConnector" key="connector">
+							<reference key="NSSource" ref="1020215216"/>
+							<reference key="NSDestination" ref="625009079"/>
+							<string key="NSLabel">value: values.compileOptionsObjectiveCPlusPlus</string>
+							<string key="NSBinding">value</string>
+							<string key="NSKeyPath">values.compileOptionsObjectiveCPlusPlus</string>
+							<object class="NSDictionary" key="NSOptions">
+								<string key="NS.key.0">NSContinuouslyUpdatesValue</string>
+								<boolean value="YES" key="NS.object.0"/>
+							</object>
+							<int key="NSNibBindingConnectorVersion">2</int>
+						</object>
+					</object>
+					<int key="connectionID">43</int>
 				</object>
 			</array>
 			<object class="IBMutableOrderedSet" key="objectRecords">
 						<int key="objectID">2</int>
 						<reference key="object" ref="1006"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="558569867"/>
-							<reference ref="33764897"/>
+							<reference ref="814582193"/>
+							<reference ref="87712865"/>
 						</array>
 						<reference key="parent" ref="1005"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">5</int>
-						<reference key="object" ref="558569867"/>
+						<reference key="object" ref="814582193"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="305009130"/>
+							<reference ref="645047781"/>
 						</array>
 						<reference key="parent" ref="1006"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">6</int>
-						<reference key="object" ref="305009130"/>
-						<reference key="parent" ref="558569867"/>
+						<reference key="object" ref="645047781"/>
+						<reference key="parent" ref="814582193"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">9</int>
-						<reference key="object" ref="33764897"/>
+						<int key="objectID">13</int>
+						<reference key="object" ref="625009079"/>
+						<reference key="parent" ref="0"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">16</int>
+						<reference key="object" ref="87712865"/>
 						<array class="NSMutableArray" key="children">
-							<reference ref="717196017"/>
-							<reference ref="746256603"/>
-							<reference ref="42014487"/>
+							<reference ref="976337956"/>
+							<reference ref="72911305"/>
+							<reference ref="951464003"/>
+							<reference ref="265043842"/>
 						</array>
 						<reference key="parent" ref="1006"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">10</int>
-						<reference key="object" ref="717196017"/>
-						<reference key="parent" ref="33764897"/>
+						<int key="objectID">17</int>
+						<reference key="object" ref="976337956"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="621071337"/>
+						</array>
+						<reference key="parent" ref="87712865"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">11</int>
-						<reference key="object" ref="746256603"/>
-						<reference key="parent" ref="33764897"/>
+						<int key="objectID">18</int>
+						<reference key="object" ref="72911305"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="306417222"/>
+						</array>
+						<reference key="parent" ref="87712865"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">19</int>
+						<reference key="object" ref="306417222"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="555937593"/>
+						</array>
+						<reference key="parent" ref="72911305"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">20</int>
+						<reference key="object" ref="621071337"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="120131727"/>
+						</array>
+						<reference key="parent" ref="976337956"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">21</int>
+						<reference key="object" ref="951464003"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="495315869"/>
+						</array>
+						<reference key="parent" ref="87712865"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">22</int>
+						<reference key="object" ref="495315869"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="235955710"/>
+						</array>
+						<reference key="parent" ref="951464003"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">23</int>
+						<reference key="object" ref="265043842"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="17540913"/>
+						</array>
+						<reference key="parent" ref="87712865"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">24</int>
+						<reference key="object" ref="17540913"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="944735915"/>
+						</array>
+						<reference key="parent" ref="265043842"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">9</int>
+						<reference key="object" ref="120131727"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="826942590"/>
+							<reference ref="314240252"/>
+							<reference ref="1071612464"/>
+						</array>
+						<reference key="parent" ref="621071337"/>
 					</object>
 					<object class="IBObjectRecord">
 						<int key="objectID">12</int>
-						<reference key="object" ref="42014487"/>
-						<reference key="parent" ref="33764897"/>
+						<reference key="object" ref="826942590"/>
+						<reference key="parent" ref="120131727"/>
 					</object>
 					<object class="IBObjectRecord">
-						<int key="objectID">13</int>
-						<reference key="object" ref="63646844"/>
-						<reference key="parent" ref="0"/>
+						<int key="objectID">11</int>
+						<reference key="object" ref="314240252"/>
+						<reference key="parent" ref="120131727"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">10</int>
+						<reference key="object" ref="1071612464"/>
+						<reference key="parent" ref="120131727"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">26</int>
+						<reference key="object" ref="555937593"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="401381746"/>
+							<reference ref="229686425"/>
+							<reference ref="714333577"/>
+						</array>
+						<reference key="parent" ref="306417222"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">27</int>
+						<reference key="object" ref="401381746"/>
+						<reference key="parent" ref="555937593"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">28</int>
+						<reference key="object" ref="229686425"/>
+						<reference key="parent" ref="555937593"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">29</int>
+						<reference key="object" ref="714333577"/>
+						<reference key="parent" ref="555937593"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">32</int>
+						<reference key="object" ref="235955710"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="90236673"/>
+							<reference ref="107776586"/>
+							<reference ref="337021555"/>
+						</array>
+						<reference key="parent" ref="495315869"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">33</int>
+						<reference key="object" ref="90236673"/>
+						<reference key="parent" ref="235955710"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">34</int>
+						<reference key="object" ref="107776586"/>
+						<reference key="parent" ref="235955710"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">35</int>
+						<reference key="object" ref="337021555"/>
+						<reference key="parent" ref="235955710"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">38</int>
+						<reference key="object" ref="944735915"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="1036717624"/>
+							<reference ref="1034588263"/>
+							<reference ref="1020215216"/>
+						</array>
+						<reference key="parent" ref="17540913"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">39</int>
+						<reference key="object" ref="1036717624"/>
+						<reference key="parent" ref="944735915"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">40</int>
+						<reference key="object" ref="1034588263"/>
+						<reference key="parent" ref="944735915"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">41</int>
+						<reference key="object" ref="1020215216"/>
+						<reference key="parent" ref="944735915"/>
 					</object>
 				</array>
 			</object>
 				<string key="11.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="12.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="13.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<object class="NSMutableDictionary" key="16.IBAttributePlaceholdersKey">
+					<string key="NS.key.0">InitialTabViewItem</string>
+					<object class="IBInitialTabViewItemAttribute" key="NS.object.0">
+						<string key="name">InitialTabViewItem</string>
+						<reference key="object" ref="87712865"/>
+						<reference key="initialTabViewItem" ref="976337956"/>
+					</object>
+				</object>
+				<string key="16.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="17.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="18.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="19.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="2.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="20.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="21.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="22.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="23.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="24.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="26.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="27.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="28.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="32.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="33.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="34.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="35.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="38.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="39.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="40.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="41.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="6.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="9.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<nil key="activeLocalization"/>
 			<dictionary class="NSMutableDictionary" key="localizations"/>
 			<nil key="sourceID"/>
-			<int key="maxID">15</int>
+			<int key="maxID">43</int>
 		</object>
 		<object class="IBClassDescriber" key="IBDocument.Classes">
 			<array class="NSMutableArray" key="referencedPartialClassDescriptions">

File Editor Teksta/IVSourceCodeDocument.h

 #import <clang-c/Index.h>
 #endif
 
+#define STATIC_ARGS 0
+
 @interface IVSourceCodeDocument : NSDocument<NSTextViewDelegate>
 
+#if !STATIC_ARGS
+@property (assign) char ** args;
+@property (assign) size_t argCount;
+#endif
+
 @property (retain) NSMutableAttributedString * content;
 
 #if HAVE_LIBCLANG

File Editor Teksta/IVSourceCodeDocument.m

 
 #import "IVSourceCodeDocument.h"
 
-#define STATIC_ARGS 0
 #if STATIC_ARGS
 #define DEFAULT_ARGS const char* args[] = { \
     "-x", "objective-c", \
     "-mmacosx-version-min=10.6", \
     "-I", [[self.fileURL path] stringByDeletingLastPathComponent].UTF8String \
     };
-#else
-static char ** args = NULL;
-static size_t argCount;
 #endif
 
 @implementation IVSourceCodeDocument
     DEFAULT_ARGS;
     size_t argCount = sizeof(args)/sizeof(args[0]);
 #else
-    NSString * compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptions"];
+    NSString * compileOptionsString = compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptionsC"];
+    
+    if([typeName isEqualToString:(NSString*)kUTTypeCSource])
+        compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptionsC"];
+    if([typeName isEqualToString:(NSString*)kUTTypeObjectiveCSource])
+        compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptionsObjectiveC"];
+    if([typeName isEqualToString:(NSString*)kUTTypeCPlusPlusSource])
+        compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptionsCPlusPlus"];
+    if([typeName isEqualToString:(NSString*)kUTTypeObjectiveCPlusPlusSource])
+        compileOptionsString = [[NSUserDefaults standardUserDefaults] stringForKey:@"compileOptionsObjectiveCPlusPlus"];
     NSArray * compileOptionsArray = [compileOptionsString componentsSeparatedByString:@" "];
-    if(args)
+    if(self.args)
     {
-        for(int i = 0; i < argCount; i++)
+        for(int i = 0; i < self.argCount; i++)
         {
-            free(args[i]);
+            free(self.args[i]);
         }
-        free(args);
+        free(self.args);
     }
     
-    args = malloc(sizeof(const char *) * compileOptionsArray.count);
+    self.args = malloc(sizeof(const char *) * compileOptionsArray.count);
     for(int i = 0; i < compileOptionsArray.count; i++)
     {
         NSString * s = [compileOptionsArray objectAtIndex:i];
-        args[i] = malloc(strlen(s.UTF8String)+1);
-        strcpy(args[i], s.UTF8String);
+        self.args[i] = malloc(strlen(s.UTF8String)+1);
+        strcpy(self.args[i], s.UTF8String);
     }
-    argCount = compileOptionsArray.count;
+    self.argCount = compileOptionsArray.count;
+    const char ** args = (const char**)self.args; size_t argCount = self.argCount;
 #endif
     
     self.codeCompletionTranslationUnit =
         clang_parseTranslationUnit(self.codeCompletionIndex,
                                    [[self.fileURL path] UTF8String],
-                                   (const char**)args, argCount,
+                                   args, argCount,
                                    NULL, 0,
                                    clang_defaultEditingTranslationUnitOptions());
+    [self printDiagnostics];
+    if(!self.codeCompletionTranslationUnit)
+        return NO;
 #endif
     return YES;
 }
-
 + (BOOL)autosavesInPlace
 {
     return YES;