Re: how to separate the path name from a file name

2008-12-17 Thread Kiel Gillard
Hi there, Not too sure what you mean by "path name", but the API you'll want to look at could be here . Kiel :-) "Violence is the last refug

Re: how to separate the path name from a file name

2008-12-17 Thread Jason Foreman
On Wed, Dec 17, 2008 at 5:52 AM, wamozart 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 NSStrin

Re: how to separate the path name from a file name

2008-12-17 Thread Nick Zitzmann
On Dec 17, 2008, at 8:52 PM, wamozart 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? -stringByDeletingLastPathComponent.