• 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
NSString path manipulation methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSString path manipulation methods


  • Subject: NSString path manipulation methods
  • From: Oliver Donald <email@hidden>
  • Date: Fri, 22 Nov 2002 09:53:18 -0000

Hi,
My first app is nearly complete, but currently URL's are stored as strings
as they are extracted from HTML source in another NSString.

NSStrings handle URL's fine, but a few of the path operations screw parts of
the URL up. I am using -(NSString *)stringByDeletingLastPathComponent, and
this converts any instance of double-slashes (such as in
'http://www.apple.com') into single slashes (giving 'http:/www.apple.com').
Is there a reason for this? Is there a simple way to get around it? I've
rolled my own but its nasty.
I would use NSURL's the whole time, but 90% of the processing on them is
string-operations, so using URL's would result in many more conversions.

Any help appreciated,
Thanks,
Oli
_______________________________________________
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: NSString path manipulation methods
      • From: "Clark S. Cox III" <email@hidden>
    • Re: NSString path manipulation methods
      • From: Kris Amico <email@hidden>
  • Prev by Date: Re: An interesting localisation issue
  • Next by Date: Simple Semi-Transparent View?
  • Previous by thread: Re: An interesting localisation issue
  • Next by thread: Re: NSString path manipulation methods
  • Index(es):
    • Date
    • Thread