• 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: Colour of Symlink
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Colour of Symlink


  • Subject: Re: Colour of Symlink
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 5 Aug 2008 20:34:20 +0700


On 5 Aug 2008, at 14:37, Jean-Daniel Dupas wrote:

Le 5 août 08 à 08:13, Gerriet M. Denkmann a écrit :

I want to get the colour of a symlink (NOT the colour of the thing the symlinks points at).
Is there a Cocoa way to get this?


Currently I am using FSPathMakeRef (or CFURLGetFSRef) to get an FSRef, and then FSGetCatalogInfo to get the colour.

But both FSPathMakeRef and CFURLGetFSRef seem to follow through symlinks (not aliases though).
So I always get the colour of the destination (or an error if the symlink is broken).


How can I get the colour of my symlink?

Have a look at FSPathMakeRefWithOptions();
Hint: the only option currently available for this function is kFSPathMakeRefDoNotFollowLeafSymlink

Thank you very much, this is exactly what I was looking for. Only I was looking at the wrong place. The only location where this function is mentioned (at least in the Tiger documentation) is the "Core Services Reference Update" (without any info except the name) and Files.h in MacOSX10.4u.sdk (with all the info needed).


So, I would never have found it without your kind help.

Kind regards,

Gerriet.

_______________________________________________

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


  • Follow-Ups:
    • Re: Colour of Symlink
      • From: "Sean McBride" <email@hidden>
References: 
 >Colour of Symlink (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Colour of Symlink (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Resizing a NSImage in a Cocoa command line tool
  • Next by Date: Re: Message Framework and Garbage Collection
  • Previous by thread: Re: Colour of Symlink
  • Next by thread: Re: Colour of Symlink
  • Index(es):
    • Date
    • Thread