• 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: Appending NSStrings to an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Appending NSStrings to an NSTextView


  • Subject: Re: Appending NSStrings to an NSTextView
  • From: David Rehring <email@hidden>
  • Date: Mon, 31 Dec 2001 20:03:16 -0800

On 12/30/01 11:15 PM, David Rehring at email@hidden wrote:

> I need to append an NSString to an NSTextView and there doesn't seem to be a
> non-hackish way of doing it.

It turns out NSTextStorage does the job in a way that doesn't make me
squeamish...

NSTextStorage *textStorage;
TextStorage = [textView textStorage];
[textStorage beginEditing];
[textStorage appendAttributedString:somestring];
[textStorage endEditing];

Thanks to everyone who sent me suggestions.

Later,
--
David Rehring Psychos do not explode when light hits
Senior Software Engineer them, no matter how crazy they are...
Atimi Software, Inc.
www.atimi.com And totally insane guy!


References: 
 >Appending NSStrings to an NSTextView (From: David Rehring <email@hidden>)

  • Prev by Date: How to work out if a font supports a character?
  • Next by Date: Re: Apple's Address Book File Format
  • Previous by thread: Re: Appending NSStrings to an NSTextView
  • Next by thread: NSFont userFontOfSize vs setUserFixedPitchFont [resent using correct account]
  • Index(es):
    • Date
    • Thread