• 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: NSTextViews with images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextViews with images


  • Subject: Re: NSTextViews with images
  • From: Roarke Lynch <email@hidden>
  • Date: Sun, 18 Aug 2002 02:01:07 -0400

I believe someone just posted a solution to this a little while back (but I may be wrong).
Try using NSTextView's textContainter and setTextContainer methods. It should preserve images and styles.

On Saturday, August 17, 2002, at 11:58 AM, Jan Van Boghout wrote:

Hi,

I am looking for a way to get and set the contents of an NSTextView.
What I want to do is grab the contents of a first text view (*with* images and styled text) and put it in a second text view.
I tried setString and string to get and set the contents, but those just use the text part without any styles or images.

Anybody know how to do this?

Thanks,

Jan Van Boghout
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


Roarke Lynch
-------------------------------
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSTextViews with images (From: Jan Van Boghout <email@hidden>)

  • Prev by Date: Re: NEWBIE: double backslash in NSStrings
  • Next by Date: Initializing an NSView derivative's variables...
  • Previous by thread: Re: NSTextViews with images (solution)
  • Next by thread: Set the bold style in an attributedstring
  • Index(es):
    • Date
    • Thread