• 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: 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


References: 
 >Re: path name from Apple Event (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: How do I make my App Plugable?
  • Next by Date: Re: [Cocoadev] Problem becoming a good citizen and backwards compatible
  • Previous by thread: Re: path name from Apple Event
  • Next by thread: Re: path name from Apple Event
  • Index(es):
    • Date
    • Thread