Re: pasteAsRichText - how to specify source pasteboard
Re: pasteAsRichText - how to specify source pasteboard
- Subject: Re: pasteAsRichText - how to specify source pasteboard
- From: stupidFish programming <email@hidden>
- Date: Fri, 17 Jan 2003 20:13:07 +0100
Hi Douglas,
thanks for the tip. it works perfectly. :)
now I have another question you might know an answer to: is it possible
to change a brushed metal window to aqua appearance during runtime?
thanks,
Ben
On Friday, January 17, 2003, at 07:10 PM, Douglas Davidson wrote:
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.