• 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: six things I wasn't able to do with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: six things I wasn't able to do with Cocoa


  • Subject: Re: six things I wasn't able to do with Cocoa
  • From: James Walker <email@hidden>
  • Date: Fri, 28 May 2010 11:19:41 -0700

On 5/28/2010 11:18 AM, Alastair Houghton wrote:
On 28 May 2010, at 18:25, James Walker wrote:

On 5/27/2010 12:43 PM, Bill Appleton wrote:
*1) I can't hide a file, or test if a file is hidden*

I had to resort to FSGetCatalogInfo -- there is no way to do it through
NSFileManager, etc. Right?

Since there are several ways to hide a file, I don't think FSGetCatalogInfo will necessarily tell you if a file is invisible. The right way (before 10.6, anyway) is to use LSCopyItemAttribute with the attribute kLSItemExtensionIsHidden.

I don't think that's the right thing at all. kLSItemExtensionIsHidden would seem to be talking about the *extension*.

Oops, I was half right. Right function, wrong attribute; kLSItemIsInvisible is what is needed.


--
  James W. Walker, Innoventive Software LLC
  <http://www.frameforge3d.com/>
_______________________________________________

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: 
 >six things I wasn't able to do with Cocoa (From: Bill Appleton <email@hidden>)
 >Re: six things I wasn't able to do with Cocoa (From: James Walker <email@hidden>)
 >Re: six things I wasn't able to do with Cocoa (From: Alastair Houghton <email@hidden>)

  • Prev by Date: Re: six things I wasn't able to do with Cocoa
  • Next by Date: Changing cursors in window's bounds
  • Previous by thread: Re: six things I wasn't able to do with Cocoa
  • Next by thread: Re: six things I wasn't able to do with Cocoa
  • Index(es):
    • Date
    • Thread