Re: Creating a console view
Re: Creating a console view
- Subject: Re: Creating a console view
- From: Rick Mann <email@hidden>
- Date: Tue, 16 Mar 2010 19:26:44 -0700
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 (email@hidden)
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:
This email sent to email@hidden