• 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
RTF pasting as plain text in NSTextView in some cases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RTF pasting as plain text in NSTextView in some cases


  • Subject: RTF pasting as plain text in NSTextView in some cases
  • From: Vince <email@hidden>
  • Date: Thu, 28 Feb 2008 11:32:13 -0500

Hi,

My NSTextView has strange behavior when pasting: The rich text is pasted as plain text when the material has been copied from Safari. When the same material has been copied from another NSTextView (e.g., TextEdit), it pastes properly as RTF.

I checked my pasteboard type at the end of the windowControllerDidLoadNib routine:

	NSArray *arrDrag = [tView acceptableDragTypes];
	for(i=0;i<[arrDrag count];i++)
		NSLog(@"%@", [arrDrag objectAtIndex:i]);

I obtain a full array of Pasteboard types as noted below.
Thanks much for any assistance or insight into this problem,

- VInce

 NeXT RTFD pasteboard type

 NeXT Rich Text Format v1.0 pasteboard type

 Apple HTML pasteboard type

 NSFilenamesPboardType

 CorePasteboardFlavorType 0x6D6F6F76

 Apple PDF pasteboard type

 NeXT TIFF v4.0 pasteboard type

 Apple PICT pasteboard type

 NeXT Encapsulated PostScript v1.2 pasteboard type

 Apple PNG pasteboard type

 WebURLsWithTitlesPboardType

 CorePasteboardFlavorType 0x75726C20

 Apple URL pasteboard type

 NSStringPboardType

 NSColor pasteboard type

 NeXT font pasteboard type

 NeXT ruler pasteboard type






_______________________________________________

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: RTF pasting as plain text in NSTextView in some cases
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Charting API?
  • Next by Date: Re: Drawing from secondary thread erases resize corner in window?
  • Previous by thread: Re: @property and messages
  • Next by thread: Re: RTF pasting as plain text in NSTextView in some cases
  • Index(es):
    • Date
    • Thread