• 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 links through NSWorkspace or something?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating links through NSWorkspace or something?


  • Subject: Re: Creating links through NSWorkspace or something?
  • From: Wade Tregaskis <email@hidden>
  • Date: Fri, 19 Nov 2004 19:26:34 +1100

I'd like to create normal file aliases for files. Initially I tried using NSWorkspace, but that didn't work for me.

Could someone let me know if NSWorkspace is supposed to work for this task or not or if NSFileManager or similar might be a better bet.

I'm not sure about NSWorkManager specifically, but MacOS X in general is pretty incompetent when it comes to handling aliases... which is a shame, because Classic MacOS aliases are the only such scheme I've ever seen, on any platform, that actually worked properly.


Anyway, having ranted that, you should probably start by reading <http://developer.apple.com/documentation/Cocoa/Conceptual/ LowLevelFileMgmt/Tasks/ResolvingAliases.html> and referring also to the other documents it mentions. I don't think any of the high-level classes like NSWorkspace have any notion of aliases, other than as regular files. If you're prepared to do a bit of C coding, the best resource is the Carbon Alias Manager, <http://developer.apple.com/documentation/Carbon/Reference/ Alias_Manager/index.html>. Of course, converting to and from Unix (Cocoa) paths & FSSpec's/FSRef's is a bit of a nightmare in general, so avoid that route if you can.

Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN & email: email@hidden, Jabber: email@hidden)
-- Sed quis custodiet ipsos custodes?


_______________________________________________
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


References: 
 >Creating links through NSWorkspace or something? (From: Christoffer Lerno <email@hidden>)

  • Prev by Date: Re: NSPanel with just a close button & title on title bar?
  • Next by Date: Re: override drawRect
  • Previous by thread: Re: Creating links through NSWorkspace or something?
  • Next by thread: Drop into trashcan sound
  • Index(es):
    • Date
    • Thread