• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Creating a console view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating a console view (From: Rick Mann <email@hidden>)
 >Re: Creating a console view (From: Jens Alfke <email@hidden>)
 >Re: Creating a console view (From: Rick Mann <email@hidden>)
 >Re: Creating a console view (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Creating a console view
  • Next by Date: Blocked Reads
  • Previous by thread: Re: Creating a console view
  • Next by thread: Re: Creating a console view
  • Index(es):
    • Date
    • Thread