• 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: "Anthony Cheung" <email@hidden>
  • Date: Fri, 30 May 2003 10:01:47 +0800

Dear all,

Thanks for your help. I successfully get the full path, include the volume
name with method componentsToDisplayForPath.

Best regards,

Anthony

----- Original Message -----
From: "Douglas Davidson" <email@hidden>
To: "j o a r" <email@hidden>
Cc: "Anthony Cheung" <email@hidden>; <email@hidden>
Sent: Friday, May 30, 2003 8:09 AM
Subject: Re: Getting Application Path


>
> 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.

References: 
 >Re: Getting Application Path (From: j o a r <email@hidden>)
 >Re: Getting Application Path (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Dragging Methods for NSOutlineView
  • Next by Date: Re: NSString from Carbon by AppleEvent
  • Previous by thread: Re: Getting Application Path
  • Next by thread: Re: Getting Application Path
  • Index(es):
    • Date
    • Thread