Re: NSPasteboard -> NSTextView
Re: NSPasteboard -> NSTextView
- Subject: Re: NSPasteboard -> NSTextView
- From: Kyle Sluder <email@hidden>
- Date: Sat, 3 Oct 2009 13:13:37 -0700
On Oct 3, 2009, at 12:59 PM, Knut Lorenzen <email@hidden> wrote:
How do I assign the RTF(D) in NSPasteboard to my NSTextView
*programmatically*?
Deserialize the data off the pasteboard, and mutate the text view's
associated text storage. Undo events will be logged correctly, but you
may want to set the undo group name to be a bit more descriptive.
Hope that helps,
--Kyle Sluder
_______________________________________________
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