• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSString initWithBytes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: How do I intersect two bezier paths?
  • Next by Date: Re: NSKeyedArchiver - better ways to autosave documents?
  • Previous by thread: How do I intersect two bezier paths?
  • Next by thread: Re: NSString initWithBytes
  • Index(es):
    • Date
    • Thread