Re: Tokenizing a returned path?
Re: Tokenizing a returned path?
- Subject: Re: Tokenizing a returned path?
- From: TJ Marbois <email@hidden>
- Date: Wed, 04 Sep 2002 13:26:10 -0700
On 9/4/02 12:26 PM, "Clark S. Cox III" <email@hidden> wrote:
>
On 09/04/2002 15:05, "TJ Marbois" <email@hidden> wrote:
>
>
> Hi
>
>
>
> I have a method that returns the full path for a file as a NSString...the
>
> problem is - I need to separate the fileName from the path...
>
>
file = [someString lastPathComponent]
>
path = [someString stringByDeletingLastPathComponent]
>
>
Both are declared in Foundation/NSPathUtilities.h
Ah ha!
That9s exactly what I was looking for....thank you kindly!
Tj
_______________________________________________
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.