• 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: Jens Alfke <email@hidden>
  • Date: Fri, 20 Nov 2009 09:45:04 -0800

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 (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: Chris Idou <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>)

  • Prev by Date: Re: setToolTip: not working
  • Next by Date: Re: How to avoid the movie distortion ?
  • Previous by thread: Re: tiffs on pasteboard
  • Next by thread: Re: tiffs on pasteboard
  • Index(es):
    • Date
    • Thread