Amazon.com Widgets cString issues
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 21, 2013, 08:18:16 PM
Home Help Search chat Login Register   
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+  Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+  Old Stuff
| |-+  Help!!!
| | |-+  cString issues
Pages: [1]   Go Down
Print
Author Topic: cString issues  (Read 770 times)
AEONmw
Newbie
*
Posts: 6







« on: May 06, 2009, 07:46:13 PM »

I get this warning whenever I use cString in a printf call, such as:

printf ("%s", [myStringObject cString]);


error message is:
Line Location MSAddressCard.m:172: warning: 'cString' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:345)

Any fix to this ?
Logged
skochan
Administrator
Hero Member
*****
Posts: 3103







« Reply #1 on: May 06, 2009, 08:17:52 PM »

Use UTF8String instead.

Cheers,

Steve
Logged
Pages: [1]   Go Up
Print
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.