• 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
Re: tiffs on pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tiffs on pasteboard


  • Subject: Re: tiffs on pasteboard
  • From: Chris Idou <email@hidden>
  • Date: Fri, 20 Nov 2009 15:59:56 -0800 (PST)


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@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: tiffs on pasteboard
      • From: Kyle Sluder <email@hidden>
References: 
 >tiffs on pasteboard (From: Chris Idou <email@hidden>)
 >Re: tiffs on pasteboard (From: Kyle Sluder <email@hidden>)
 >Re: tiffs on pasteboard (From: Chris Idou <email@hidden>)
 >Re: tiffs on pasteboard (From: Jens Alfke <email@hidden>)
 >Re: tiffs on pasteboard (From: Chris Idou <email@hidden>)
 >Re: tiffs on pasteboard (From: Jens Alfke <email@hidden>)
 >Re: tiffs on pasteboard (From: Chris Idou <email@hidden>)
 >Re: tiffs on pasteboard (From: Alexander Spohr <email@hidden>)
 >Re: tiffs on pasteboard (From: Chris Idou <email@hidden>)
 >Re: tiffs on pasteboard (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: [iPhone] weird crash (aren't they all?): ivar seems to be dynamically changing its type
  • Next by Date: method_getNumberOfArguments counts blocks twice
  • Previous by thread: Re: tiffs on pasteboard
  • Next by thread: Re: tiffs on pasteboard
  • Index(es):
    • Date
    • Thread