NSString initWithBytes
NSString initWithBytes
- Subject: NSString initWithBytes
- From: Koen van der Drift <email@hidden>
- Date: Thu, 1 Sep 2005 19:53:58 -0400
Hi,
I am using the following code to convert a char to an NSString:
aString = [[NSString alloc] initWithBytes: &aChar length: 1 encoding:
NSUTF8StringEncoding];
However, the compiler gives a warning that initWithBytes cannot be
found. I am using OS X 10.4. (and yes, I have added #import
<Foundation/Foundation.h>
to the header file ;-)
Any ideas why I get the warning, the method is documented in the
developer docs, and it even works as it is supposed to.
thanks,
- Koen.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden