Re: pasteAsRichText - how to specify source pasteboard
Re: pasteAsRichText - how to specify source pasteboard
- Subject: Re: pasteAsRichText - how to specify source pasteboard
- From: Douglas Davidson <email@hidden>
- Date: Fri, 17 Jan 2003 10:10:39 -0800
On Friday, January 17, 2003, at 5:10 AM, Benjamin Salanki wrote:
I was wondering if there was a way to specify the source pasteboard
for usage with NSTextView's pasteAsRichText: method. My app uses an
internal pasteboard from which i want to paste the data into the > field.
Not per se, but you can certainly achieve the same result
programmatically with
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard
type:(NSString *)type;
and an appropriate type, presumably NSRTFDPboardType, NSRTFPboardType,
or NSHTMLPboardType, depending on what the pasteboard contains.
Douglas Davidson
_______________________________________________
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.