• 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: Cocoa-dev Digest, Vol 2, Issue 1246
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Path/Breadcrumb view component
  • Next by Date: Re: Path/Breadcrumb view component
  • Previous by thread: Re: Path/Breadcrumb view component
  • Next by thread: WebKit and window.external
  • Index(es):
    • Date
    • Thread