+[NSPasteboard pasteboardByFilteringData:ofType:] returns nil
+[NSPasteboard pasteboardByFilteringData:ofType:] returns nil
- Subject: +[NSPasteboard pasteboardByFilteringData:ofType:] returns nil
- From: Jeremy Dronfield <email@hidden>
- Date: Wed, 5 Apr 2006 16:01:07 +0100
Does +[NSPasteboard pasteboardByFilteringData:ofType:] do anything?
If so, how? According to the documentation, it:
"Creates and returns a new pasteboard with a unique name that
supplies the specified data in as many types as possible given the
available filter services."
I've been trying to use it to create a pasteboard which splits RTF
data into all the CorePasteboardFlavorTypes. But when I do:
NSTextStorage *storage = [myTextView textStorage];
NSData *rtfData = [storage RTFFromRange:NSMakeRange(0, [storage
length]) documentAttributes:nil];
NSPasteboard *pboard = [NSPasteboard
pasteboardByFilteringData:rtfData ofType:NSRTFPboardType];
I get nil back. rtfData is not nil, so that isn't the problem. What
am I missing here?
Regards,
Jeremy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden