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_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to