On Dec 22, 2008, at 2:22 PM, Richard S. French wrote:

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];

[snip]

Watch your capitalization: you've got "characterAtindex:", but the selector is "characterAtIndex:".

HTH,
-- Kevin

Kevin Gessner
http://kevingessner.com
[email protected]







_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to