• 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: Tokenizing a returned path?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tokenizing a returned path?


  • Subject: Re: Tokenizing a returned path?
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Wed, 04 Sep 2002 15:26:54 -0400

On 09/04/2002 15:05, "TJ Marbois" <email@hidden> wrote:

> Hi
>
> I have a method that returns the full path for a file as a NSString...the
> problem is - I need to separate the fileName from the path...

file = [someString lastPathComponent]
path = [someString stringByDeletingLastPathComponent]

Both are declared in Foundation/NSPathUtilities.h
--
http://homepage.mac.com/clarkcox3/
Clark S. Cox III
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Tokenizing a returned path?
      • From: TJ Marbois <email@hidden>
References: 
 >Tokenizing a returned path? (From: TJ Marbois <email@hidden>)

  • Prev by Date: Launching an App without NSWorkspace?
  • Next by Date: Build error
  • Previous by thread: Tokenizing a returned path?
  • Next by thread: Re: Tokenizing a returned path?
  • Index(es):
    • Date
    • Thread