Re: Icon in window title
Re: Icon in window title
- Subject: Re: Icon in window title
- From: Tom Waters <email@hidden>
- Date: Sat, 26 May 2001 15:18:16 -0700
I did some more digging and found that Finder simply leaves out certain
datatypes when you drag the computer icon, versus when you are dragging
a folder.
Normal drags include
- "NSFilenamesPBoardType" with an array containing one element
("/Path/To/Folder")
- "NeXT filename pasteboard type" contains "/Path/To/Folder".
- "Apple Uniform Resource Locator (file)" contains
"file://localhost/Path/To/Folder"
- "Apple URL pasteboard type" contains a complete plist which contains
an array which contains "file://localhost//Path/To/Folder".
"CorePasteboardFlavorType 'furl'" contains
"file://localhost/Path/To/Folder"
"CorePasteboardFlavorType 'hfs '" seems to contain the contents of a
struct FSRef
"CorePasteboardFlavorType 'prxy'" contains a single byte 0x01
"CorePasteboardFlavorType 'node'" contains some large number, possibly
an internal finder node number?
When dragging Computer, only the last two are put in the pasteboard.
Which is why Finder is the only one who notices the proxy dragging at
all.
Now the trick remains, how do I create a proxy that will behave the same
way?
-tw
On Thursday, May 24, 2001, at 06:25 PM, Tom Waters wrote:
Now back to my original question. The icon that finder sets in the
title bar is for the currently selected folder, and now I see how you
can drag it as a proxy. For example, select the OSX disk, drag it to
Terminal, and see that a "/" gets pasted.
So, now what is the Computer icon a proxy for? When you drag it,
Finder itself does drag highlighting, like if you drag it over the OSX
disk icon in finder, but if you drag it to Terminal, it gets rejected
and nothing is pasted. The type for the drag when dragging a regular
folder proxy includes "NSFilenamesPboardType" and "Apple Uniform
Resource Locator (file)", but when dragging Computer, neither of these
is present.
Any thoughts on what file Finder is setting as the proxy? If I wanted
to duplicate this behavior, should I just create some temp file that
has the computer icon? Seems kinda lame.