Re: Getting Application Path
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.