Well... now that in 10.6 the pasteboard types are UTI types, I'm not sure that
one can say anymore that there is no mapping from files to pasteboard types.
And 10.6 Finder puts a public.tiff into the pasteboard in this case, but I
would argue it is the wrong tiff.
----------------
On Nov 20, 2009, at 1:35 AM, Chris Idou wrote:
> I thought the solution to big files was to use pasteboard promises... not to
> setup a pasteboard which is conflicted about what item it is trying to
> store. At least that's what I find documented by Apple.
You're correct that promises would overcome some of the inefficiencies
(although I can envision other situations where the size would be a problem.)
I suspect the real reason is that there isn't a straightforward mapping between
file types and pasteboard types. There is not in general any table that says "a
file with extension ".foo" contains data that can be stored in a pasteboard
using type 'FooPasteboardType'"; so the Finder would not be able to decide in
all cases what pasteboard type to use for the contents of the dragged/copied
file.*
You could argue that images are a useful special case; but I suspect that the
engineers responsible decided that it was better to remain consistent..
(And actually, it doesn't even work for all image types. The old Mac 'PICT'
format is infamous for having a slightly different representation in memory
than in a file, so you can't just slurp a PICT file into the pasteboard and
have it be useable.)
—Jens
* Especially for package file types that are actually directories; would the
rule be to create a Zip archive? :-P
__________________________________________________________________________________
Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7.
Enter now: http://au.docs.yahoo.com/homepageset/
_______________________________________________
Cocoa-dev mailing list ([email protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]