NSPasteboard -> NSTextView
NSPasteboard -> NSTextView
- Subject: NSPasteboard -> NSTextView
- From: Knut Lorenzen <email@hidden>
- Date: Sat, 3 Oct 2009 21:59:44 +0200
Dear List,
My App receives RTF (or RTFD) data via Drag & Drop:
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender {
NSPasteboard *pboard;
pboard = [sender draggingPasteboard];
.
.
.
and checks with
if ( [[pboard types] containsObject: NSPasteboardTypeRTF] ) { ...
for available data types. The documentation on NSTextView is
overwhelming to some degree, I only want to display the dropped data
in a NSTextView (in code).
How do I assign the RTF(D) in NSPasteboard to my NSTextView
*programmatically*?
Cheers,
Knut
_______________________________________________
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