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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to