Re: what happend of the .hidden file in Tiger?
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