Re: Hide an Item on Desktop
Re: Hide an Item on Desktop
- Subject: Re: Hide an Item on Desktop
- From: Jens Alfke <email@hidden>
- Date: Fri, 9 Oct 2009 20:56:47 -0700
On Oct 9, 2009, at 10:37 AM, Maggie Zhang wrote:
What I want is to hide existing mounted volumes whose names I don't
want to change.
Setting the HFS "invisible" bit is the way to go, then. I've done this
before. You can do this from the command line:
SetFile -a V /Volumes/HideMe
Doing it programmatically requires using the HFS metadata APIs in
<CarbonCore/Files.h>.
I am not sure how well this will work with volumes that are not HFS-
formatted, e.g. FAT-formatted flash-memory sticks. But it should work
with regular disk images, which are HFS+.
—Jens_______________________________________________
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