Re: Help with pasteboard
Re: Help with pasteboard
- Subject: Re: Help with pasteboard
- From: Charles Srstka <email@hidden>
- Date: Thu, 18 Oct 2001 15:08:56 -0500
On Thursday, October 18, 2001, at 02:03 PM, Brian Webster wrote:
OK, it appears that the Finder "prefers" to take the string rather than
the file if both are offered. It appears to really be an issue with
the Finder, not with your code specifically. When you drop your data
onto the Finder, does it correctly create a text clipping file? Have
you tried only offering the file contents type? Does it create a plain
text file then?
Hmm, I just tried doing that, and the drag operation was aborted each
time. When I dragged an item to the Finder, it would be flung right back
into my outline view. I used the following line to declare the file type:
[pboard declareTypes:[NSArray arrayWithObject:NSFileContentsPboardType]
owner:self];
and the Finder would not accept a drag from my app. Even if I
immediately wrote the wrapper to the pasteboard right in the writeItems:
toPasteboard: method, the Finder would have none of it. Apparently the
Finder doesn't want to receive NSFileContentsPboardType. Odd.