• 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: Locate path to file's directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Locate path to file's directory


  • Subject: Re: Locate path to file's directory
  • From: Andy Lee <email@hidden>
  • Date: Sun, 27 Jan 2008 09:29:54 -0500

On Jan 27, 2008, at 8:40 AM, John James wrote:
I can get the path of the document being read (with NSDocument fileURL and path ) and delete its name from the path, but I thought there must be a more direct API. I can't find it.

Are you looking for NSString's stringByDeletingLastPathComponent method?

--Andy


_______________________________________________

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


References: 
 >Locate path to file's directory (From: John James <email@hidden>)

  • Prev by Date: Re: Setting a clip mask on a NSView
  • Next by Date: Re: Locate path to file's directory
  • Previous by thread: Locate path to file's directory
  • Next by thread: Re: Locate path to file's directory
  • Index(es):
    • Date
    • Thread