• 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: Creating alias to app for PDFService
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating alias to app for PDFService


  • Subject: Re: Creating alias to app for PDFService
  • From: Gregory Weston <email@hidden>
  • Date: Sun, 30 Apr 2006 18:34:20 -0400

Antonio Nunes wrote:

Thanks James. With your help a bit more tinkering enabled me to find
the solution. I shouldn't be calling linkPath:toPath:, but
createSymbolicLinkAtPath:pathContent: instead to create aliases. With
that call, creating the alias is easy peasy. I list the corrected and
expanded complete method here in case it's of any use to anybody.
Note that this code only looks in the user's library folder, it
ignores the option of installing the service for all users.

I don't know how much of an impact it will have directly here, but please be aware that there are some differences in the way the system handles symlinks (which is what you're actually creating here) and aliases. If you find you really want an alias, there's a function in the MoreIsBetter sample code package that will do it:


<http://developer.apple.com/samplecode/MoreIsBetter/listing17.html>
_______________________________________________
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


  • Follow-Ups:
    • Re: Creating alias to app for PDFService
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: beginUndoGrouping and "dirty" state
  • Next by Date: Re: Distributed objects: connecting to a process running as root?
  • Previous by thread: Re: Creating alias to app for PDFService
  • Next by thread: Re: Creating alias to app for PDFService
  • Index(es):
    • Date
    • Thread