Re: Disk icon for mounted file system in the Finder
Re: Disk icon for mounted file system in the Finder
- Subject: Re: Disk icon for mounted file system in the Finder
- From: Dan Markarian <email@hidden>
- Date: Mon, 20 Oct 2003 07:30:30 -0400
Hi Sam,
calls I need to make to DiskArb are, do you?
DiskArbDiskAppearedWithMountpointPing_auto();
It's not possible to publish a custom volume icon out of the VFS layer
for the moment, however, you can experiment with putting an icon at the
root of volume itself, ".VolumeIcon.icns", at some point before telling
Disk Arbitration. I have not tried it myself.
Finder noticed a mount point and registered it with DiskArb.
Disk Arbitration has no involvement, actually. It is just Finder.
Dan
On Oct 19, 2003, at 8:10 PM, Sam Vaughan wrote:
Hi Brian, thanks for the response. You don't happen to know what the
calls I need to make to DiskArb are, do you? If that's all there is
to it, we should be able to achieve what we want by calling DiskArb
from our mount code right after the mount succeeds. I've been through
the NFS code a few times without coming across anything like this.
I'll have another look now I've got a better idea what I'm searching
for.
Thanks for the URLManager tip too - I'll do some digging there as well.
Sam
On Sunday, Oct 19, 2003, at 02:25 Australia/Melbourne, Brian
Bergstrand wrote:
On Monday, October 13, 2003, at 10:21 PM, Sam Vaughan wrote:
Something I only just noticed today was that if you navigate to our
mount point in a Finder column view window, clicking on one of our
mounted logical volumes results in an icon for it appearing on the
desktop. The icon is the black globe on a graphite external disk,
just like the one you get for NFS mounts.
So do we really need to publish IOMedia objects in the IORegistry?
The fact that mounting an NFS volume results in the same icon on the
desktop with no change to the IORegistry makes me suspicious.
That is all DiskArb at work. The Finder noticed a mount point and
registered it with DiskArb.
Of course my next question would be how to change the icon we get ;-)
You can only do that with the URLManager, but that is not a public
framework yet (as of Jag, don't know about Panther).
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.