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

+[NSConstantString length]: selector not recognized


  • Subject: +[NSConstantString length]: selector not recognized
  • From: Jonathan Jackel <email@hidden>
  • Date: Thu, 13 Mar 2003 21:31:15 -0500

I'm running into a strange problem with some strings.

Here's what I'm doing. In some method I have:

NSMutableString *right = [[[bothSides objectAtIndex:1] mutableCopy]
autorelease];

Which returns a valid mutable string. Then I do:

NSString *newRight = [NSString stringWithString:right];
NSString *createArg = [NSString stringWithFormat:@"[Right]
:%@",newRight];
NSArray *nothing = [self create:createArg array:picks];

And up until this point everything seems ok. createArg contains
something like "[Right] :Things" -- no apparent problems.

The beginning of create:array: looks like this:

- (NSArray *)create:(NSString *)arguments array:(NSArray *)picks
{
NSArray *args = [arguments componentsSeparatedByString:@":"];

And this is where the fun starts. As soon as I hit this statement, I
get:

2003-03-13 21:10:33.004 DGStitcher[1187] *** +[NSConstantString
length]: selector not recognized

The array never gets returned.

I have tried several methods of formulating createArg and I always get
this error. Can anyone help?

Jonathan
_______________________________________________
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: +[NSConstantString length]: selector not recognized
      • From: Karl Kraft <email@hidden>
  • Prev by Date: Building my app for 10.1...
  • Next by Date: Re: UI responsiveness
  • Previous by thread: Adopting Mac OS X font rendering engine
  • Next by thread: Re: +[NSConstantString length]: selector not recognized
  • Index(es):
    • Date
    • Thread