• 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: 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


References: 
 >separating file name and path (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Re: separating file name and path
  • Next by Date: Re: NSGraphicsContext's setCompositingOperation:
  • Previous by thread: Re: separating file name and path
  • Next by thread: Custom ordered table - core data - array controller
  • Index(es):
    • Date
    • Thread