But what are the rules and conventions? Why would Finder put the icon in the 
pasteboard on the assumption that is what the user wants, but TextEdit would 
paste in the actual file on the assumption that is what the user wants? It 
seems schizophrenic. I just want a list of rules of how to use the Pasteboard 
in a way that conforms to what users expect. If I start ignoring the TIFF part 
of the pasteboard in favor of the URL on the assumption that is what the user 
wants, why is the tiff there anyway? And will that get me into trouble in other 
cases?




________________________________
From: Jens Alfke <[email protected]>
To: Chris Idou <[email protected]>
Cc: Kyle Sluder <[email protected]>; [email protected]
Sent: Fri, 20 November, 2009 12:29:51 PM
Subject: Re: tiffs on pasteboard


On Nov 19, 2009, at 5:24 PM, Chris Idou wrote:

> But I'm still confused about one thing: If copying from Finder actually 
> copies the file icon, and not the actual tiff, how come it pastes ok into 
> TextEdit?

The Finder also puts the location of the file on the pasteboard, and I believe 
TextEdit sees that, recognizes that it's an image file, and reads the file into 
an image. You can do the same fairly easily.

—Jens


      
__________________________________________________________________________________
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]

Reply via email to