Re: rangeOfString question
Re: rangeOfString question
- Subject: Re: rangeOfString question
- From: Dave Swan <email@hidden>
- Date: Fri, 18 May 2001 08:36:39 -0700
All,
Ignore this question. It turns out that, because of a dumb coding error
on my part, the tab really isn't there, so the rangeOfString method is
working as it should.
My mistake.
...Dave
On Thursday, May 17, 2001, at 11:27 AM, Dave Swan wrote:
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
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev