Re: Creating links through NSWorkspace or something?
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