• 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: +[NSString length] selector not recognized
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: +[NSString length] selector not recognized - Fixed!!
      • From: Jon Raphaelson <email@hidden>
References: 
 >+[NSString length] selector not recognized (From: Jon Raphaelson <email@hidden>)

  • Prev by Date: +[NSString length] selector not recognized
  • Next by Date: What's better a separate run loop or separate thread?
  • Previous by thread: +[NSString length] selector not recognized
  • Next by thread: Re: +[NSString length] selector not recognized - Fixed!!
  • Index(es):
    • Date
    • Thread