Re: path name from Apple Event
Re: path name from Apple Event
- Subject: Re: path name from Apple Event
- From: Michael Hall <email@hidden>
- Date: Sun, 14 Aug 2005 19:56:57 -0500
On Aug 14, 2005, at 5:58 PM, Gerriet M. Denkmann wrote:
Given an NSAppleEventDescriptor of typeAlias = 'alis' - how do I
get the path as an NSString?
This is not real Cocoa and it was a while ago but I think when I
looked at handling odoc's myself a little bit once or twice I didn't
deal with the alias type. I think I either implicitly or explicitly
coerced that to a FSSpec type, typeFSS maybe? That was still a
relative path FSSpec so in order to get a full path I followed an
example in "MoreFileUtilities" I think it is, a Mac OS oldie but
goldie, and back walked the Mac OS paths from current directory to
parent directory to that ones parent and so on until I was back up to
root and had a full path.
Mike Hall email@hidden
http://www.spacestar.net/users/mikehall
http://sourceforge.net/projects/macnative
_______________________________________________
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