• 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: what happend of the .hidden file in Tiger?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what happend of the .hidden file in Tiger?


  • Subject: Re: what happend of the .hidden file in Tiger?
  • From: James Bucanek <email@hidden>
  • Date: Fri, 26 Aug 2005 22:25:53 -0700

Mason Mark wrote on Saturday, August 27, 2005:

>On Aug 27, 2005, at 1:54 AM, James Bucanek wrote:
>> Stop trying to second guess the OS and just ask Launch Services if
>> the item is hidden or not:
>>
>>
>>     LSItemInfoRecord    itemInfo;
>>     err = LSCopyItemInfoForRef
>> (&itemRef,kLSRequestBasicFlagsOnly,&itemInfo);
>>     if ( (itemInfo.flags&kLSItemInfoIsInvisible) != 0 )
>>         {
>>         // item is invisible...
>>
>> This is the exact same interface the Finder and most other system
>> frameworks use. It applies all of the rules that OS X uses to
>> determine if a file should normally be hidden from the user. And
>> will continue to do so in the future, even if those rules change.
>
>
>Hi guys,
>
>My quibble with the above statement is that Launch Services couldn't
>really "continue to work" unless it worked now, which it doesn't.
>
>While it does seem to work somewhat *better* than in pre-10.4 OS
>versions (for example, it seems to now know that files which start
>with "." are invisible), it still misses some files which should be
>presented the user as invisible, as Givanni points out.
>
>To wit, here's some test code (based on the above snippet), and its
>(incorrect) output:

This is news to me. I've never had any problem with LS until I ran your test code. Admittedly, I haven't really tested any of my code since Tiger, so maybe it's a 10.4 issue. Have you filed a bug report?

James

--
James Bucanek
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: what happend of the .hidden file in Tiger?
      • From: Mason Mark <email@hidden>
References: 
 >Re: what happend of the .hidden file in Tiger? (From: Mason Mark <email@hidden>)

  • Prev by Date: Re: re Finding transparent pixels in an image
  • Next by Date: All caps?
  • Previous by thread: Re: what happend of the .hidden file in Tiger?
  • Next by thread: Re: what happend of the .hidden file in Tiger?
  • Index(es):
    • Date
    • Thread