• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Hide an Item on Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Hide an Item on Desktop (From: Maggie Zhang <email@hidden>)
 >Re: Hide an Item on Desktop (From: "I. Savant" <email@hidden>)
 >Re: Hide an Item on Desktop (From: M Pulis <email@hidden>)
 >Re: Hide an Item on Desktop (From: "I. Savant" <email@hidden>)
 >Re: Hide an Item on Desktop (From: David Patrick Henderson <email@hidden>)
 >Re: Hide an Item on Desktop (From: Dave Camp <email@hidden>)
 >Re: Hide an Item on Desktop (From: Maggie Zhang <email@hidden>)

  • Prev by Date: Re: Document architecture - stop it from opening untitled documents?
  • Next by Date: Re: How to ease the burden on the Garbage Collector?
  • Previous by thread: Re: Hide an Item on Desktop
  • Next by thread: Re: Hide an Item on Desktop
  • Index(es):
    • Date
    • Thread