Re: Cocoa-dev Digest, Vol 2, Issue 1246
Re: Cocoa-dev Digest, Vol 2, Issue 1246
- Subject: Re: Cocoa-dev Digest, Vol 2, Issue 1246
- From: Bill Monk <email@hidden>
- Date: Mon, 15 Aug 2005 16:23:31 -0500
On Aug 15, 2005, at 3:51 PM, 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?
What's the source of the aliases? I'm wondering if some of them could
be corrupt somehow.
If ResovleAlias() can't resolve an alias (like in one of your earlier
postings), the alias is basically corrupt by definition. If so, AE
coercions aren't going to work either.)
_______________________________________________
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