+[NSConstantString length]: selector not recognized
+[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.