Re: how to separate the path name from a file name
Re: how to separate the path name from a file name
- Subject: Re: how to separate the path name from a file name
- From: "Jason Foreman" <email@hidden>
- Date: Wed, 17 Dec 2008 13:17:33 -0600
On Wed, Dec 17, 2008 at 5:52 AM, wamozart <email@hidden> wrote:
> Hi, I'm writing an NSDocument class code. I would like to separate the path
> name from a file name.
> NSString *filename = [self fileName];
>
> returns the full path and file name. How do I get the path name only?
See this section of the NSString doc about working with paths:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/doc/uid/20000154-SW38
Jason
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden