• 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
NSPasteboard -> NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSPasteboard -> NSTextView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: whether to use core data...
  • Next by Date: Re: whether to use core data...
  • Previous by thread: Re: Auto Install Login Item
  • Next by thread: Re: NSPasteboard -> NSTextView
  • Index(es):
    • Date
    • Thread