• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: separating file name and path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >separating file name and path (From: Mike Abdullah <email@hidden>)

  • Prev by Date: separating file name and path
  • Next by Date: Re: separating file name and path
  • Previous by thread: separating file name and path
  • Next by thread: Re: separating file name and path
  • Index(es):
    • Date
    • Thread