• 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: Newbie: NSString and debugging question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: NSString and debugging question


  • Subject: Re: Newbie: NSString and debugging question
  • From: Esteban Uribe <email@hidden>
  • Date: Thu, 10 Apr 2003 16:20:51 -0700

Hi, :)

On Thursday, April 10, 2003, at 01:35PM, Andres Ramirez <email@hidden> wrote:

>Hello again, and thanks in advance again.
>
>No matter what I do, I can't seem to get NSString pathWithComponents to
>end the string with a trailing "/"
>
>I tried making the last component an empty string like the docs say,
>and I also tried to put "/" as my last NSMutableArray item and still no
>go.
>
>I can work around it, but would like to know why this happens???
>

Try setting the last component of NSMutableArray to be an empty string @""

This should give the trailing "/" in the path resulting from pathWithComponents,
according to the documentation at: <http://developer.apple.com/techpubs/macosx/Cocoa/Reference/Foundation/ObjC_classic/Classes/NSString.html#pathWithComponents_>

You add a "/" in the front (index 0) of the NSMutableArray if you want to
create an absolute path (i.e. "/Users")

>My second question. Is there a way to better debug NSArrays? Meaning,
>is there a way to see the contents of them using the GUI debugger?

I don't know of any way, however NSLog([array description]) usually works for me :)

Hope this helps
-Esteban Uribe
_______________________________________________
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: Newbie: NSString and debugging question
      • From: Marco Binder <email@hidden>
  • Prev by Date: Re: Automatically Launching an App
  • Next by Date: Binary Differencer/Patcher for OS X?
  • Previous by thread: Re: Floating text during mouse-over button
  • Next by thread: Re: Newbie: NSString and debugging question
  • Index(es):
    • Date
    • Thread