• 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
How can I filter out files in root directory like the Finder does?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I filter out files in root directory like the Finder does?


  • Subject: How can I filter out files in root directory like the Finder does?
  • From: Dave Camp <email@hidden>
  • Date: Fri, 8 Feb 2008 09:31:29 -0800

My app has an NSBroswer view that the user can files and folders in and I need to filter out all of the stuff that they shouldn't normally see, like the Finder does.

Following previous postings on this subject I've implemented the following:

- Read the .hidden file from / and filter out anything listed in there (does not appear to be used in Leopard)
- Call LSCopyItemInfoForRef and test for kLSItemInfoIsInvisible
- Call FSGetCatalogInfo(kFSCatInfoFinderInfo) and test for fInfo- >finderFlags & kIsInvisible


That gets almost everything except /home and /net, which the Finder does not show. I thought there might be some sort of xattrs on those directories that would help, but there aren't any xattrs on them.

Are there other tests I'm missing?

Thanks,
Dave

_______________________________________________

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


  • Prev by Date: Why are paths depracated in favor of NSURL?
  • Next by Date: Re: How to detect focus on an NSTextField
  • Previous by thread: Re: Why are paths depracated in favor of NSURL?
  • Next by thread: Question about Core Data Models and frameworks
  • Index(es):
    • Date
    • Thread