Re: +[NSString length] selector not recognized
Re: +[NSString length] selector not recognized
- Subject: Re: +[NSString length] selector not recognized
- From: "John C. Randolph" <email@hidden>
- Date: Sat, 10 Jul 2004 01:02:46 -0700
On Jul 10, 2004, at 12:22 AM, Jon Raphaelson wrote:
I am having a problem and was wondering if anyone could give me a
hand. I searched through the archives, and realize that at least once
this has come up before, but there was no resolution.
What I have is an NSString * that is calling rangeOfString: like this
found = [string rangeOfString: matchString_];
However, right at that point, an exception is thrown, complaining that
+[NSString length] isn't recognized. I know that length isn't there as
a class method, but I cannot figure out how to get the stupid
exception to go away. So I figure, someone out there must have had the
same issue and figured out how to get around it.
Any help is greatly appreciated.
What do you get from "po string" and "po matchString_" in gdb? One or
the other of them isn't what you expect it to be.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.