• 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: Setting file visibility in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting file visibility in Cocoa


  • Subject: Re: Setting file visibility in Cocoa
  • From: Michael Watson <email@hidden>
  • Date: Tue, 23 Jan 2007 14:16:11 -0500

Awesome! I figured there was an easy API-based way to pull it off. Thanks for the correction.


-- mikey

On 23 Jan, 2007, at 14:12, Andrew Farmer wrote:

On 23 Jan 07, at 10:08, Michael Watson wrote:
I'm sure there's an API way I don't know about, but (assuming legality) you could always bundle SetFile inside your application, and use NSTask.

Ew, no! Use the Carbon function that SetFile wraps: FSSetCatalogInfo.

(Or, if you have an inexplicable Carbon allergy, setattrlist() - though I'd strongly discourage that.)

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Setting file visibility in Cocoa (From: Ken Tozier <email@hidden>)
 >Re: Setting file visibility in Cocoa (From: Michael Watson <email@hidden>)
 >Re: Setting file visibility in Cocoa (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Setting file visibility in Cocoa
  • Next by Date: Re: Setting file visibility in Cocoa
  • Previous by thread: Re: Setting file visibility in Cocoa
  • Next by thread: Re: Setting file visibility in Cocoa
  • Index(es):
    • Date
    • Thread