CharacterAtIndex method?
CharacterAtIndex method?
- Subject: CharacterAtIndex method?
- From: "Richard S. French" <email@hidden>
- Date: Mon, 22 Dec 2008 14:22:35 -0500
- Thread-topic: CharacterAtIndex method?
I am receiving a compiler warning: ³NSString may not respond to
characterAtIndex² from the following code.
This is from MathPaper Chapter 12 of Building Cocoa Apps. Any help is
appreciated.
Thanks.
- (void)appendString:(NSString *)string
{
int i;
for (i=0;i<[string length];i++) {
unichar c = [string characterAtindex:i];
switch(c) {
case '\n':
case '{':
case '}':
case '\\':
[self appendChar:'\\'];
break;
default:
break;
}
[self appendChar:c];
}
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden