• 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: path name from Apple Event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: attributed string in nsoutlineview
  • Next by Date: An Xcode question
  • Previous by thread: Re: path name from Apple Event
  • Next by thread: Re: path name from Apple Event
  • Index(es):
    • Date
    • Thread