• 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: Alias Woes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Alias Woes...


  • Subject: Re: Alias Woes...
  • From: Greg Robbins <email@hidden>
  • Date: Tue, 20 Jul 2004 16:31:54 -0700

At 6:52 PM -0400 7/20/04, Jerry LeVan wrote:
>Sym links work fine. Is there a solution for aliases?

Convert the path to an URL with NSURL's fileURLWithPath, use CFURLGetFSRef to get an FSRef for the path, call FSResolveAliasFileWithMountFlags (with kResolveAliasFileNoUI for flags unless the target might be on a server) to find what the alias file really points to, use CFURLCreateFromFSRef to convert the resulting FSRef to an NSURL, and get the path of that NSURL.

Greg Robbins
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Alias Woes...
      • From: Jerry LeVan <email@hidden>
References: 
 >Alias Woes... (From: Jerry LeVan <email@hidden>)

  • Prev by Date: Re: Lost in Linking a Framework within the App bundle
  • Next by Date: Re: Lost in Linking a Framework within the App bundle
  • Previous by thread: Alias Woes...
  • Next by thread: Re: Alias Woes...
  • Index(es):
    • Date
    • Thread