• 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: Ken Thomases <email@hidden>
  • Date: Thu, 8 Oct 2009 19:10:38 -0500

On Oct 8, 2009, at 6:37 PM, I. Savant wrote:

On Oct 8, 2009, at 7:24 PM, Maggie Zhang wrote:

Does anyone know if it's possible to programmatically hide an single item
(e.g. a file or a mounted disk or a directory) from the Desktop?

Rename it so that it starts with a period. "Dot-files" are hidden.

Well, there's also the hidden bit in the file's metadata. It's accessible a number of ways:


chflags(2) with UF_HIDDEN

The kIsInvisible flag of the finderFlags field of the FileInfo and FolderInfo, settable with FSSetCatalogInfo.

The command: /Developer/Tool/SetFile -a V <path>

setattrlist(2) via either ATTR_CMN_FLAGS (analogous to chflags) or ATTR_CMN_FNDRINFO (analogous to FSSetCatalogInfo).

Etc.

Cheers,
Ken

_______________________________________________

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


  • Follow-Ups:
    • Re: Hide an Item on Desktop
      • From: "I. Savant" <email@hidden>
References: 
 >Hide an Item on Desktop (From: Maggie Zhang <email@hidden>)
 >Re: Hide an Item on Desktop (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: debugging cursors
  • Next by Date: Re: Hide an Item on Desktop
  • Previous by thread: Re: Hide an Item on Desktop
  • Next by thread: Re: Hide an Item on Desktop
  • Index(es):
    • Date
    • Thread