Re: NSString, NSArray, get the characters of one of the NSString in an Array of NSStrings?
Re: NSString, NSArray, get the characters of one of the NSString in an Array of NSStrings?
- Subject: Re: NSString, NSArray, get the characters of one of the NSString in an Array of NSStrings?
- From: Douglas Davidson <email@hidden>
- Date: Fri, 13 Jul 2001 10:45:28 -0700
On Friday, July 13, 2001, at 09:27 AM, Michel Haver wrote:
The compiler accepts that, but if I try to use the follwing statement
drawString = [ drawCharacterOfString characterAtIndex : i ];
I get a warning:
assignment makes pointer from integer without a cast
and my application quits.
Because characterAtIndex: returns a unichar, not an NSString *. Try
using substringWithRange:NSMakeRange(i, 1) instead.
Douglas Davidson