Re: separating file name and path
Re: separating file name and path
- Subject: Re: separating file name and path
- From: Zach Wily <email@hidden>
- Date: Tue, 19 Jul 2005 11:22:21 -0600
Check out the Path stuff in NSString:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Classes/NSString.html#//apple_ref/doc/uid/20000154-
pathComponents
On Jul 19, 2005, at 11:15 AM, Mike Abdullah wrote:
In my app, I have to take the path for a file, e.g. "/Users/Mike/
Desktop/Hello.scpt" and get both the file path, and the name of the
path. I.e. I want to end up with two strings/paths which are "/
Users/Mike/Desktop/" and "Hello.scpt"
Does anyone know of an easy method for separating the 2?
Cheers,
Mike.
_______________________________________________
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
_______________________________________________
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