• 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: TJ Marbois <email@hidden>
  • Date: Wed, 04 Sep 2002 13:26:10 -0700

On 9/4/02 12:26 PM, "Clark S. Cox III" <email@hidden> wrote:

> 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

Ah ha!

That9s exactly what I was looking for....thank you kindly!

Tj
_______________________________________________
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.

References: 
 >Re: Tokenizing a returned path? (From: "Clark S. Cox III" <email@hidden>)

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