• 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: I know I've done this before...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I know I've done this before...


  • Subject: Re: I know I've done this before...
  • From: Scott Anguish <email@hidden>
  • Date: Tue, 12 Jun 2001 01:27:15 -0400

On Monday, June 11, 2001, at 07:51 PM, John C. Randolph wrote:
I know I've done this before, but I don't recall how to insert an NSAttributedString into an NSTextView, preserving its formatting. Do I have to stick it in the pasteboard first?

You can get the NSMutableAttributedString from the NSTextView (the NSTextStorage) and then append it to the storage...

I think you might need to then inform the text storage of the change using - (void)edited:(unsigned)mask range:(NSRange)oldRange changeInLength:(int)lengthChange) but hopefully Ali will read this and say for sure.


References: 
 >I know I've done this before... (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Re: OpenSSL
  • Next by Date: Re: CVS/SCM
  • Previous by thread: Re: I know I've done this before...
  • Next by thread: NSView drawRect vs. autoscrolling
  • Index(es):
    • Date
    • Thread