• 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
Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@


  • Subject: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 9 Oct 2002 00:29:15 -0500

-[NSString UTF8String] works pretty well for this.

Charles

On Tuesday, October 8, 2002, at 09:33 PM, Nicholas Riley wrote:

On Wed, Oct 09, 2002 at 01:48:00AM +0200, Gerben Wierda wrote:
When I use %@ in a format in an NSString, what is used to go from
NSString to char *? I always assumed it to be cSrring, but isnce that
is deprecated, which one is it?

This is in the documentation, if you look up +[NSString
stringWithFormat:] and follow the link to "Using Format Strings":

%@ Objective-C object, printed as the string returned by
descriptionWithLocale: if available, or description otherwise


--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@ (From: Nicholas Riley <email@hidden>)

  • Prev by Date: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • Next by Date: How to use "SEL"
  • Previous by thread: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • Next by thread: Re: cString, (deprecated), lossyCString, fileSystemRepresentation, %@
  • Index(es):
    • Date
    • Thread