On Mar 16, 2010, at 19:24:17, Jens Alfke wrote:

> 
> On Mar 16, 2010, at 7:13 PM, Rick Mann wrote:
> 
>> There's no warning because there's no difference between
>>      NSString* existingText = self.output.string;
>> and
>>      NSString* existingText = [self.output string];
> 
> Actually I misread your code and thought you were calling 
> -replaceCharactersInRange: on the string, not on the NSTextView. That’s what 
> would have been a warning. My mistake, sorry!

I figured as much. No worries. Thanks for pointing out the NSTextStorage. That 
seems to work much better, although -setNeedsDisplay: doesn't cause it to 
refresh, scrolling it into view does.

By the way, this (which I just found) suggests appending text more in the way I 
was originally doing it:

file:///Developer/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Conceptual/TextArchitecture/Tasks/SimpleTasks.html

-- 
Rick

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to