• 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
rangeOfString question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rangeOfString question


  • Subject: rangeOfString question
  • From: Dave Swan <email@hidden>
  • Date: Thu, 17 May 2001 11:27:49 -0700

Hi all,

I'm trying to find the range of a substring of characters in a line of text but I'm running into a problem with the rangeOfString method. This is my call to rangeOfString:

stringRange = [theTextLine rangeOfString:@" |\t"];

The problem is with the tab character. I know that exists because I see it when I perform a hexdump on my file, but stringRange.length returns 0 if I include it in my search string. It works fine if I remove the tab character. I'm new to Cocoa programming, so I'm probably missing something fundamental here. Any ideas?

...Dave
-------------------
Dave Swan, email@hidden


  • Follow-Ups:
    • Re: rangeOfString question
      • From: Dave Swan <email@hidden>
  • Prev by Date: OpenGL & Cocoa Question
  • Next by Date: Re: Property List Question
  • Previous by thread: Re: OpenGL & Cocoa Question
  • Next by thread: Re: rangeOfString question
  • Index(es):
    • Date
    • Thread