• 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: Getting Application Path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Application Path


  • Subject: Re: Getting Application Path
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 29 May 2003 17:09:31 -0700

On Thursday, May 29, 2003, at 4:04 AM, j o a r wrote:

Well, then I guess you might be better off on the Carbon path after all. Sad but true.

j o a r

On Thursday, May 29, 2003, at 12:25 Europe/Stockholm, Anthony Cheung wrote:

Thanks. I have tried. Here is what I got, I have two volume in my MAC. I
display the content of return NSArray by NSLog.
1. "/"
2. "/Volumes/Backup".

1. is the volume where my application sit in. So I still can't get the name
of application's volume. I debug the application in PB.

The mount path of the volume has no necessary connection to the name of the volume, so you cannot use that. However, you do not have to go to Carbon. You can use NSFileManager's componentsToDisplayForPath:, the first of which should be the name of the volume.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting Application Path
      • From: "Anthony Cheung" <email@hidden>
References: 
 >Re: Getting Application Path (From: j o a r <email@hidden>)

  • Prev by Date: Re: Need Help with Obj-C -> Java bridge method calls with multiple arguments
  • Next by Date: Re: Find Window Under Mouse
  • Previous by thread: Re: Getting Application Path
  • Next by thread: Re: Getting Application Path
  • Index(es):
    • Date
    • Thread