• 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: Best way to determine if a directory is a package
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to determine if a directory is a package


  • Subject: Re: Best way to determine if a directory is a package
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 25 Jun 2010 18:22:59 -0500

On Jun 25, 2010, at 6:16 AM, Paul Sanders wrote:

>> Hidden item names begin with a "."
>
> There is also a UF_HIDDEN flag in stat.st_flags.  Google man stat os x for details (you want stat(2)).  The Finder respects this flag on my 10.6.3 system.  Whether it corresponds to kLSItemInfoIsVisible in LSItemInfoRecord.LSItemInfoFlags (as recommended by Jean-Daniel) I don't know.  As usual in Mac-land, there are 6 ways of doing everything.

That flag is the same as the hidden/invisible flag available through the higher-level frameworks like Launch Services, the File Manager, and Cocoa.

Similarly with UF_IMMUTABLE and the locked flag.

In general, the higher-level frameworks are implemented in terms of the lower-level ones.  Where higher-level concepts are not supported by the low-level implementation (e.g. a particular file system), they are emulated as best as possible.

Regards,
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

References: 
 >Re: Best way to determine if a directory is a package (From: "ronald b. kopelman" <email@hidden>)
 >Re: Best way to determine if a directory is a package (From: "Paul Sanders" <email@hidden>)

  • Prev by Date: Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?
  • Next by Date: Re: NSMenuDelegate menuDidClose called before NSMenuItem's action?
  • Previous by thread: Re: Best way to determine if a directory is a package
  • Next by thread: NSPanel and NSWindowController
  • Index(es):
    • Date
    • Thread