<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,11 +1,11 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;archive type=&quot;com.apple.InterfaceBuilder3.Cocoa.XIB&quot; version=&quot;7.02&quot;&gt;
+&lt;archive type=&quot;com.apple.InterfaceBuilder3.Cocoa.XIB&quot; version=&quot;7.03&quot;&gt;
 	&lt;data&gt;
 		&lt;int key=&quot;IBDocument.SystemTarget&quot;&gt;1050&lt;/int&gt;
-		&lt;string key=&quot;IBDocument.SystemVersion&quot;&gt;9D25&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.InterfaceBuilderVersion&quot;&gt;655&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.AppKitVersion&quot;&gt;949.32&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;352.00&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.SystemVersion&quot;&gt;9J3050&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.InterfaceBuilderVersion&quot;&gt;677&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.AppKitVersion&quot;&gt;949.46&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;353.00&lt;/string&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.EditedObjectIDs&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 			&lt;integer value=&quot;57&quot;/&gt;
@@ -15,6 +15,15 @@
 			&lt;string&gt;com.apple.InterfaceBuilderKit&lt;/string&gt;
 			&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 		&lt;/object&gt;
+		&lt;object class=&quot;NSMutableDictionary&quot; key=&quot;IBDocument.Metadata&quot;&gt;
+			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;object class=&quot;NSArray&quot; key=&quot;dict.sortedKeys&quot;&gt;
+				&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;/object&gt;
+			&lt;object class=&quot;NSMutableArray&quot; key=&quot;dict.values&quot;&gt;
+				&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;/object&gt;
+		&lt;/object&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.RootObjects&quot; id=&quot;1048&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 			&lt;object class=&quot;NSCustomObject&quot; id=&quot;1021&quot;&gt;
@@ -51,7 +60,7 @@
 								&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 								&lt;object class=&quot;NSMenuItem&quot; id=&quot;238522557&quot;&gt;
 									&lt;reference key=&quot;NSMenu&quot; ref=&quot;110575045&quot;/&gt;
-									&lt;string key=&quot;NSTitle&quot;&gt;About NewApplication&lt;/string&gt;
+									&lt;string key=&quot;NSTitle&quot;&gt;About Neuro&lt;/string&gt;
 									&lt;string key=&quot;NSKeyEquiv&quot;/&gt;
 									&lt;int key=&quot;NSMnemonicLoc&quot;&gt;2147483647&lt;/int&gt;
 									&lt;reference key=&quot;NSOnImage&quot; ref=&quot;1033313550&quot;/&gt;
@@ -2701,6 +2710,7 @@
 					&lt;string&gt;416.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;417.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;418.IBPluginDependency&lt;/string&gt;
+					&lt;string&gt;419.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;5.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;5.ImportedFromIB2&lt;/string&gt;
 					&lt;string&gt;56.IBPluginDependency&lt;/string&gt;
@@ -2849,7 +2859,7 @@
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{{525, 802}, {197, 73}}&lt;/string&gt;
-					&lt;string&gt;{{316, 791}, {478, 20}}&lt;/string&gt;
+					&lt;string&gt;{{316, 736}, {478, 20}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{74, 862}&lt;/string&gt;
@@ -2918,10 +2928,11 @@
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
+					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
-					&lt;string&gt;{{328, 608}, {245, 183}}&lt;/string&gt;
+					&lt;string&gt;{{328, 553}, {235, 183}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;reference ref=&quot;9&quot;/&gt;
 					&lt;string&gt;{{23, 794}, {245, 183}}&lt;/string&gt;
@@ -2979,7 +2990,7 @@
 		&lt;/object&gt;
 		&lt;object class=&quot;IBClassDescriber&quot; key=&quot;IBDocument.Classes&quot;/&gt;
 		&lt;int key=&quot;IBDocument.localizationMode&quot;&gt;0&lt;/int&gt;
-		&lt;string key=&quot;IBDocument.LastKnownRelativeProjectPath&quot;&gt;../../CocoaDocApp.xcodeproj&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.LastKnownRelativeProjectPath&quot;&gt;../Neuro.xcodeproj&lt;/string&gt;
 		&lt;int key=&quot;IBDocument.defaultPropertyAccessControl&quot;&gt;3&lt;/int&gt;
 	&lt;/data&gt;
 &lt;/archive&gt;</diff>
      <filename>English.lproj/MainMenu.xib</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
-&lt;archive type=&quot;com.apple.InterfaceBuilder3.Cocoa.XIB&quot; version=&quot;7.02&quot;&gt;
+&lt;archive type=&quot;com.apple.InterfaceBuilder3.Cocoa.XIB&quot; version=&quot;7.03&quot;&gt;
 	&lt;data&gt;
 		&lt;int key=&quot;IBDocument.SystemTarget&quot;&gt;1050&lt;/int&gt;
-		&lt;string key=&quot;IBDocument.SystemVersion&quot;&gt;9F33&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.InterfaceBuilderVersion&quot;&gt;670&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.AppKitVersion&quot;&gt;949.34&lt;/string&gt;
-		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;352.00&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.SystemVersion&quot;&gt;9J3050&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.InterfaceBuilderVersion&quot;&gt;677&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.AppKitVersion&quot;&gt;949.46&lt;/string&gt;
+		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;353.00&lt;/string&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.EditedObjectIDs&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 			&lt;integer value=&quot;6&quot;/&gt;
@@ -14,6 +14,15 @@
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 			&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 		&lt;/object&gt;
+		&lt;object class=&quot;NSMutableDictionary&quot; key=&quot;IBDocument.Metadata&quot;&gt;
+			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;object class=&quot;NSArray&quot; key=&quot;dict.sortedKeys&quot;&gt;
+				&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;/object&gt;
+			&lt;object class=&quot;NSMutableArray&quot; key=&quot;dict.values&quot;&gt;
+				&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;/object&gt;
+		&lt;/object&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.RootObjects&quot; id=&quot;580458321&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 			&lt;object class=&quot;NSCustomObject&quot; id=&quot;512844837&quot;&gt;
@@ -75,6 +84,14 @@
 					&lt;/object&gt;
 					&lt;int key=&quot;connectionID&quot;&gt;18&lt;/int&gt;
 				&lt;/object&gt;
+				&lt;object class=&quot;IBConnectionRecord&quot;&gt;
+					&lt;object class=&quot;IBOutletConnection&quot; key=&quot;connection&quot;&gt;
+						&lt;string key=&quot;label&quot;&gt;_textView&lt;/string&gt;
+						&lt;reference key=&quot;source&quot; ref=&quot;512844837&quot;/&gt;
+						&lt;reference key=&quot;destination&quot; ref=&quot;1023546181&quot;/&gt;
+					&lt;/object&gt;
+					&lt;int key=&quot;connectionID&quot;&gt;100022&lt;/int&gt;
+				&lt;/object&gt;
 			&lt;/object&gt;
 			&lt;object class=&quot;IBMutableOrderedSet&quot; key=&quot;objectRecords&quot;&gt;
 				&lt;object class=&quot;NSArray&quot; key=&quot;orderedObjects&quot;&gt;
@@ -137,9 +154,9 @@
 					&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 					&lt;string&gt;-1.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;-2.IBPluginDependency&lt;/string&gt;
+					&lt;string&gt;-3.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;100021.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;5.IBEditorWindowLastContentRect&lt;/string&gt;
-					&lt;string&gt;5.IBPluginDependency&lt;/string&gt;
 					&lt;string&gt;5.IBWindowTemplateEditedContentRect&lt;/string&gt;
 					&lt;string&gt;5.ImportedFromIB2&lt;/string&gt;
 					&lt;string&gt;5.editorWindowContentRectSynchronizationRect&lt;/string&gt;
@@ -154,9 +171,9 @@
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
-					&lt;string&gt;{{91, 319}, {507, 413}}&lt;/string&gt;
 					&lt;string&gt;com.apple.InterfaceBuilder.CocoaPlugin&lt;/string&gt;
 					&lt;string&gt;{{91, 319}, {507, 413}}&lt;/string&gt;
+					&lt;string&gt;{{91, 319}, {507, 413}}&lt;/string&gt;
 					&lt;integer value=&quot;1&quot; id=&quot;5&quot;/&gt;
 					&lt;string&gt;{{201, 387}, {507, 413}}&lt;/string&gt;
 					&lt;reference ref=&quot;5&quot;/&gt;
@@ -186,7 +203,7 @@
 				&lt;/object&gt;
 			&lt;/object&gt;
 			&lt;nil key=&quot;sourceID&quot;/&gt;
-			&lt;int key=&quot;maxID&quot;&gt;100021&lt;/int&gt;
+			&lt;int key=&quot;maxID&quot;&gt;100022&lt;/int&gt;
 		&lt;/object&gt;
 		&lt;object class=&quot;IBClassDescriber&quot; key=&quot;IBDocument.Classes&quot;&gt;
 			&lt;object class=&quot;NSMutableArray&quot; key=&quot;referencedPartialClassDescriptions&quot;&gt;
@@ -194,6 +211,10 @@
 				&lt;object class=&quot;IBPartialClassDescription&quot;&gt;
 					&lt;string key=&quot;className&quot;&gt;NeoDocument&lt;/string&gt;
 					&lt;string key=&quot;superclassName&quot;&gt;NSDocument&lt;/string&gt;
+					&lt;object class=&quot;NSMutableDictionary&quot; key=&quot;outlets&quot;&gt;
+						&lt;string key=&quot;NS.key.0&quot;&gt;_textView&lt;/string&gt;
+						&lt;string key=&quot;NS.object.0&quot;&gt;NeoTextView&lt;/string&gt;
+					&lt;/object&gt;
 					&lt;object class=&quot;IBClassDescriptionSource&quot; key=&quot;sourceIdentifier&quot;&gt;
 						&lt;string key=&quot;majorKey&quot;&gt;IBProjectSource&lt;/string&gt;
 						&lt;string key=&quot;minorKey&quot;&gt;src/NeoDocument.h&lt;/string&gt;</diff>
      <filename>English.lproj/NeoDocument.xib</filename>
    </modified>
    <modified>
      <diff>@@ -9,18 +9,24 @@
 		&lt;dict&gt;
 			&lt;key&gt;CFBundleTypeExtensions&lt;/key&gt;
 			&lt;array&gt;
-				&lt;string&gt;????&lt;/string&gt;
+				&lt;string&gt;rtf&lt;/string&gt;
 			&lt;/array&gt;
 			&lt;key&gt;CFBundleTypeIconFile&lt;/key&gt;
 			&lt;string&gt;&lt;/string&gt;
+			&lt;key&gt;CFBundleTypeMIMETypes&lt;/key&gt;
+			&lt;array&gt;
+				&lt;string&gt;application/rtf&lt;/string&gt;
+			&lt;/array&gt;
 			&lt;key&gt;CFBundleTypeName&lt;/key&gt;
-			&lt;string&gt;DocumentType&lt;/string&gt;
+			&lt;string&gt;NSRTFPboardType&lt;/string&gt;
 			&lt;key&gt;CFBundleTypeOSTypes&lt;/key&gt;
 			&lt;array&gt;
-				&lt;string&gt;????&lt;/string&gt;
+				&lt;string&gt;RTF &lt;/string&gt;
 			&lt;/array&gt;
 			&lt;key&gt;CFBundleTypeRole&lt;/key&gt;
 			&lt;string&gt;Editor&lt;/string&gt;
+			&lt;key&gt;LSTypeIsPackage&lt;/key&gt;
+			&lt;false/&gt;
 			&lt;key&gt;NSDocumentClass&lt;/key&gt;
 			&lt;string&gt;NeoDocument&lt;/string&gt;
 		&lt;/dict&gt;
@@ -30,7 +36,7 @@
 	&lt;key&gt;CFBundleIconFile&lt;/key&gt;
 	&lt;string&gt;&lt;/string&gt;
 	&lt;key&gt;CFBundleIdentifier&lt;/key&gt;
-	&lt;string&gt;com.yourcompany.${PRODUCT_NAME:identifier}&lt;/string&gt;
+	&lt;string&gt;org.metareal.${PRODUCT_NAME:identifier}&lt;/string&gt;
 	&lt;key&gt;CFBundleInfoDictionaryVersion&lt;/key&gt;
 	&lt;string&gt;6.0&lt;/string&gt;
 	&lt;key&gt;CFBundleName&lt;/key&gt;</diff>
      <filename>Info.plist</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,10 @@
 #import &lt;Cocoa/Cocoa.h&gt;
 
+@class NeoTextView;
+
 @interface NeoDocument : NSDocument
 {
+  NSAttributedString *_contents;
+  IBOutlet NeoTextView *_textView;
 }
 @end</diff>
      <filename>src/NeoDocument.h</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 #import &quot;NeoDocument.h&quot;
+#import &quot;NeoTextView.h&quot;
 
 @implementation NeoDocument
 
@@ -8,20 +9,32 @@
 
 - (void) windowControllerDidLoadNib: (NSWindowController *) aController {
   [super windowControllerDidLoadNib:aController];
+
+  if (_contents != nil) {
+    [_textView insertText: _contents];
+    [_textView invalidateLayout];
+  }
 }
 
 - (NSData *) dataOfType: (NSString *) typeName error: (NSError **) outError {
-  if (outError != NULL) {
-    *outError = [NSError errorWithDomain:NSOSStatusErrorDomain code:unimpErr userInfo:NULL];
-  }
-  return nil;
+  NSAttributedString *contents = [_textView attributedString];
+	NSData *data = [contents RTFFromRange:NSMakeRange(0, [contents length])
+                     documentAttributes:nil];
+  return data;
 }
 
 - (BOOL) readFromData: (NSData *) data ofType: (NSString *) typeName error: (NSError **) outError {
-  if ( outError != NULL ) {
-    *outError = [NSError errorWithDomain:NSOSStatusErrorDomain code:unimpErr userInfo:NULL];
-  }
-  return YES;
+  NSAttributedString *contents =
+    [[NSAttributedString alloc] initWithData:data
+                                     options:[NSDictionary dictionaryWithObjectsAndKeys:
+                                                NSDocumentTypeDocumentOption, NSRTFTextDocumentType,
+                                                nil]
+                          documentAttributes:NULL
+                                       error:outError];
+  [_contents release];
+  _contents = contents;
+
+  return contents != nil;
 }
 
 @end</diff>
      <filename>src/NeoDocument.m</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #import &lt;Cocoa/Cocoa.h&gt;
 
-#define NEO_TEXT_VIEW_VERTICAL_FORMS YES
-//#define NEO_DEBUG_TEXT_VIEW
+#define NEO_TEXT_VIEW_VERTICAL_FORMS  YES
+#define NEO_DEBUG_TEXT_VIEW           0
 
 @interface NeoTextView : NSView &lt;NSTextInput, NSTextInputClient&gt; {
   NSTextStorage *_text;
@@ -13,7 +13,7 @@
   NSRange _markedRange;
   NSUInteger _caretPosition;
 
-#ifdef NEO_DEBUG_TEXT_VIEW
+#if NEO_DEBUG_TEXT_VIEW
   NSRect _rectForMarkedText;
 #endif
 
@@ -31,7 +31,7 @@
  * Returns a Boolean value that indicates whether
  * a specified position is in a given range.
  */
-NS_INLINE Boolean StkLocationInCFRange(CFIndex loc, CFRange range) {
+NS_INLINE Boolean NeoLocationInCFRange(CFIndex loc, CFRange range) {
   const CFIndex t = loc - range.location;
   return t &gt;= 0 &amp;&amp; t &lt; range.length;
 }
@@ -39,11 +39,11 @@ NS_INLINE Boolean StkLocationInCFRange(CFIndex loc, CFRange range) {
 /**
  * Returns an NSRange from a CFRange
  */
-NS_INLINE NSRange StkNSRangeFromCFRange(CFRange range) {
+NS_INLINE NSRange NeoNSRangeFromCFRange(CFRange range) {
   return NSMakeRange(range.location, range.length);
 }
 
-NS_INLINE BOOL StkNSUIntegerCanAdvance(NSUInteger index, NSUInteger exclusiveLimit, NSInteger advance) {
+NS_INLINE BOOL NeoNSUIntegerCanAdvance(NSUInteger index, NSUInteger exclusiveLimit, NSInteger advance) {
   return
     !(index == NSNotFound || advance == 0) &amp;&amp;
     !(advance &lt; 0 &amp;&amp; (advance + index) &gt;= index) &amp;&amp;</diff>
      <filename>src/NeoTextView.h</filename>
    </modified>
    <modified>
      <diff>@@ -130,7 +130,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
     for (id element in _textFrames) {
       const CTFrameRef frame = (const CTFrameRef) element;
       const CFRange textRange = CTFrameGetVisibleStringRange(frame);
-      if (StkLocationInCFRange(location, textRange)) return frame;
+      if (NeoLocationInCFRange(location, textRange)) return frame;
     }
   }
   return NULL;
@@ -185,7 +185,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
     _text = [[NSTextStorage alloc] init];
     [self invalidateLayout];
 
-#ifdef NEO_DEBUG_TEXT_VIEW
+#if NEO_DEBUG_TEXT_VIEW
   _rectForMarkedText = NSZeroRect;
 #endif
 
@@ -311,7 +311,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
   [[NSColor grayColor] set];
   NSFrameRect(bounds);
 
-#ifdef NEO_DEBUG_TEXT_VIEW
+#if NEO_DEBUG_TEXT_VIEW
   // bounding box
   const CTFrameRef frame = (const CTFrameRef)[_textFrames objectAtIndex: 0];
   const NSRect boundingBox = NSRectFromCGRect(MTFrameGetBoundingBox(frame));
@@ -569,7 +569,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
     @&quot;The position of insertion point is invalid: %u in %u&quot;,
     _caretPosition, length);
 
-  if (!StkNSUIntegerCanAdvance(_caretPosition, length + 1, advance)) return NO;
+  if (!NeoNSUIntegerCanAdvance(_caretPosition, length + 1, advance)) return NO;
   _caretPosition += advance;
   [self setNeedsDisplay: YES];
   return YES;
@@ -596,7 +596,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
 
   const CFArrayRef lines = CTFrameGetLines(frame);
   const CFIndex numberOfLines = CFArrayGetCount(lines);
-  if (!StkNSUIntegerCanAdvance(lineIndex, numberOfLines, advance)) return NO;
+  if (!NeoNSUIntegerCanAdvance(lineIndex, numberOfLines, advance)) return NO;
 
   const CFIndex nextLineIndex = lineIndex + advance;
   const CTLineRef nextLine = CFArrayGetValueAtIndex(lines, nextLineIndex);
@@ -868,7 +868,7 @@ static NSArray *kNeoTextViewValidAttributesForMarkedText = nil;
 
   NSRect firstRect = NSRectFromCGRect(rect);
 
-#ifdef NEO_DEBUG_TEXT_VIEW
+#if NEO_DEBUG_TEXT_VIEW
   _rectForMarkedText = firstRect;
 #endif
 </diff>
      <filename>src/NeoTextView.m</filename>
    </modified>
    <modified>
      <diff>@@ -10,34 +10,34 @@
 
 - (void) test_StkNSUIntegerCanAdvance {
   // NSNotFound
-  STAssertFalse(StkNSUIntegerCanAdvance(NSNotFound, 0, 1), nil);
-  STAssertFalse(StkNSUIntegerCanAdvance(NSNotFound, 0, -1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(NSNotFound, 0, 1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(NSNotFound, 0, -1), nil);
 
   // Advance
-  STAssertFalse(StkNSUIntegerCanAdvance(0, 1, 1), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(0, 2, 1), nil);
-  STAssertFalse(StkNSUIntegerCanAdvance(0, 2, 2), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(1, 30, 20), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(0, 1, 1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(0, 2, 1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(0, 2, 2), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(1, 30, 20), nil);
 
   // Advance++
-  STAssertFalse(StkNSUIntegerCanAdvance(999, 3, 1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(999, 3, 1), nil);
 
   // Minus
-  STAssertTrue(StkNSUIntegerCanAdvance(1, 2, -1), nil);
-  STAssertFalse(StkNSUIntegerCanAdvance(0, 2, -1), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(999, 999, -1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(1, 2, -1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(0, 2, -1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(999, 999, -1), nil);
 
   // Zero
-  STAssertFalse(StkNSUIntegerCanAdvance(0, 0, 0), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(0, 0, 0), nil);
 
   // MIN, MAX
-  STAssertFalse(StkNSUIntegerCanAdvance(NSUIntegerMax, NSUIntegerMax, 1), nil);
-  STAssertFalse(StkNSUIntegerCanAdvance(NSUIntegerMax - 1, NSUIntegerMax, 1), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(NSUIntegerMax - 1, NSUIntegerMax, -1), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(NSUIntegerMax - 2, NSUIntegerMax, 1), nil);
-  STAssertFalse(StkNSUIntegerCanAdvance(0, NSIntegerMax, NSIntegerMax), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance(0, NSIntegerMax, NSIntegerMax - 1), nil);
-  STAssertTrue(StkNSUIntegerCanAdvance((NSUInteger)NSIntegerMax + 1, NSUIntegerMax, NSIntegerMin), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(NSUIntegerMax, NSUIntegerMax, 1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(NSUIntegerMax - 1, NSUIntegerMax, 1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(NSUIntegerMax - 1, NSUIntegerMax, -1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(NSUIntegerMax - 2, NSUIntegerMax, 1), nil);
+  STAssertFalse(NeoNSUIntegerCanAdvance(0, NSIntegerMax, NSIntegerMax), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance(0, NSIntegerMax, NSIntegerMax - 1), nil);
+  STAssertTrue(NeoNSUIntegerCanAdvance((NSUInteger)NSIntegerMax + 1, NSUIntegerMax, NSIntegerMin), nil);
 
 }
 
@@ -47,23 +47,23 @@
 @implementation NeoTextViewTest(RangeUtilities)
 
 - (void) test_StkNSRangeFromCFRange {
-  const NSRange r0 = StkNSRangeFromCFRange(CFRangeMake(0, 0));
+  const NSRange r0 = NeoNSRangeFromCFRange(CFRangeMake(0, 0));
   STAssertEquals((NSUInteger) 0, r0.location, nil);
   STAssertEquals((NSUInteger) 0, r0.length, nil);
 
-  const NSRange r1 = StkNSRangeFromCFRange(CFRangeMake(123, 456));
+  const NSRange r1 = NeoNSRangeFromCFRange(CFRangeMake(123, 456));
   STAssertEquals((NSUInteger) 123, r1.location, nil);
   STAssertEquals((NSUInteger) 456, r1.length, nil);
 }
 
 - (void) test_StkLocationInCFRange {
-  STAssertFalse(StkLocationInCFRange(0, CFRangeMake(0, 0)), nil);
-  STAssertTrue(StkLocationInCFRange(0, CFRangeMake(0, 1)), nil);
-  STAssertFalse(StkLocationInCFRange(1, CFRangeMake(0, 1)), nil);
+  STAssertFalse(NeoLocationInCFRange(0, CFRangeMake(0, 0)), nil);
+  STAssertTrue(NeoLocationInCFRange(0, CFRangeMake(0, 1)), nil);
+  STAssertFalse(NeoLocationInCFRange(1, CFRangeMake(0, 1)), nil);
 
-  STAssertFalse(StkLocationInCFRange(0, CFRangeMake(1, 1)), nil);
-  STAssertFalse(StkLocationInCFRange(2, CFRangeMake(1, 1)), nil);
-  STAssertTrue(StkLocationInCFRange(2, CFRangeMake(1, 2)), nil);
+  STAssertFalse(NeoLocationInCFRange(0, CFRangeMake(1, 1)), nil);
+  STAssertFalse(NeoLocationInCFRange(2, CFRangeMake(1, 1)), nil);
+  STAssertTrue(NeoLocationInCFRange(2, CFRangeMake(1, 2)), nil);
 }
 
 @end
@@ -90,8 +90,8 @@
   for (CFIndex i = 0; i &lt; n; i++) {
     const CTLineRef v = CFArrayGetValueAtIndex(lines, i);
     const CFRange r = CTLineGetStringRange(v);
-    if (StkLocationInCFRange(index, r)) {
-      STAssertEquals(i, lineIndex, @&quot;range:%@&quot;, NSStringFromRange(StkNSRangeFromCFRange(r)));
+    if (NeoLocationInCFRange(index, r)) {
+      STAssertEquals(i, lineIndex, @&quot;range:%@&quot;, NSStringFromRange(NeoNSRangeFromCFRange(r)));
       STAssertEquals(r.location, range.location, nil);
       STAssertEquals(r.length, range.length, nil);
       return;</diff>
      <filename>tests/NeoTextViewTest.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>2af5c7352f289cf89bedaca5c142d49ec66a4169</id>
    </parent>
  </parents>
  <author>
    <name>Takanori Ishikawa</name>
    <email>takanori.ishikawa@gmail.com</email>
  </author>
  <url>http://github.com/ishikawa/neuro/commit/6b2ca0a89622cb6e719a74b6782fac4e1e7fe442</url>
  <id>6b2ca0a89622cb6e719a74b6782fac4e1e7fe442</id>
  <committed-date>2009-08-01T05:11:16-07:00</committed-date>
  <authored-date>2009-08-01T05:11:16-07:00</authored-date>
  <message>Implemented open/save RTF file</message>
  <tree>f7754629bd12e9fe1b0a0b5793adce5f8b9497dd</tree>
  <committer>
    <name>Takanori Ishikawa</name>
    <email>takanori.ishikawa@gmail.com</email>
  </committer>
</commit>
