Re: path name from Apple Event
Re: path name from Apple Event
- Subject: Re: path name from Apple Event
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Mon, 15 Aug 2005 19:05:27 +0200
On 15.08.2005, at 17:40, Bill Monk <email@hidden> wrote:
Gerriet M. Denkmann wrote:
Given an NSAppleEventDescriptor of typeAlias = 'alis' - how do I get
the path as an NSString?
Coerce typeAlias to typeFileURL, which is an HFS-style colon-
delimited pathname.
// [ aliasDesc descriptorType ] == typeAlias
NSAppleEventDescriptor *urlDesc = [aliasDesc
coerceToDescriptorType:typeFileURL];
// urlDesc == nil (tested on Panther)
Why?
Kind regards,
Gerriet.
_______________________________________________
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