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 12:18:25 -0700
I found this in MacWindows.h
extern OSStatus SetWindowProxyIcon(WindowRef window, IconRef icon);
It might solve my problem if I knew how to convert an NSWindow to a
WindowRef and an NSImage to an IconRef.
Anybody know how to do this?
In general it would be nice if there was a good document on how to get
from all the Cocoa NS* types down to the pertinent Carbon and
CoreServices types.
On Thursday, May 24, 2001, at 06:25 PM, Tom Waters wrote:
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.