• 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: Invisible files (was Re: Small problem)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invisible files (was Re: Small problem)


  • Subject: Re: Invisible files (was Re: Small problem)
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 14 Jun 2003 22:27:25 +0200

At 20:25 Uhr +0200 14.06.2003, Jesus De Meyer wrote:
In my Cocoa application I'm building a menu that has items from a
certain folder. Now, all works well but I get 2 items that shouldn't be
there: .DS_Store and Icon.
I have tried using the fileVisible method that I got on an earlier
mail, but that didn't work. Also checking wheater the item starts with
a "." or is equal to "icon" didn't work.

The icon file is actually named "Icon\r" (i.e., there's a return at the end of the name). It should be marked as invisible by the OS, meaning the "invisible" file flag is set (You can query that using the Carbon call GetFInfo(), if all else fails, but there should be a Cocoa file attribute equivalent to this).

".DS_Store" isn't marked as invisible, but checking whether the first character is a period is the criterion you should go by for files that don't have the invisible flag set. If that doesn't work for you, it might help to see some of your code.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Invisible files (was Re: Small problem)
      • From: Jesus De Meyer <email@hidden>
References: 
 >Small problem (From: Jesus De Meyer <email@hidden>)

  • Prev by Date: Re: NS(Mutable)Array question
  • Next by Date: Callbacks in C libraries
  • Previous by thread: Re: Small problem
  • Next by thread: Re: Invisible files (was Re: Small problem)
  • Index(es):
    • Date
    • Thread