Re: separating file name and path
Re: separating file name and path
- Subject: Re: separating file name and path
- From: Andy Lee <email@hidden>
- Date: Tue, 19 Jul 2005 13:22:44 -0400
On Jul 19, 2005, at 1:15 PM, 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?
See these NSString methods:
-lastPathComponent
-stringByDeletingLastPathComponent
--Andy
_______________________________________________
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