• 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: NSString format specifiers (was: Is Concatenation that complex?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString format specifiers (was: Is Concatenation that complex?)


  • Subject: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Tue, 27 Apr 2004 19:31:49 -0700

Hello...

On Apr 27, 2004, at 8:59 PM, Allan Odgaard wrote:
...
But it fails to support the 'z' modifier (used for size_t). Maybe if they would document their supported format specifiers/placeholders, I would know wether or not this is a bug ;)


The supported format specifiers are documented in one of the Conceptual Cocoa topics:
http://developer.apple.com/Documentation/Cocoa/Conceptual/DataFormatting/Tasks/FormatStrings.html#//apple_ref/doc/uid/20000943

It's in a similar location in the installed developer documentation.

There is actually a link to that topic in the description of NSString stringWithFormat: method, although if you use the PDF version of the docs the links don't work correctly, and the actual location of the topic is a bit subtle.

I've submitted an enhancement request for that table to be included directly in the reference documentation for NSString, and I would encourage anyone else who has had a difficult time locating that info to do the same.


As far as %z, it doesn't appear to be an ANSI C format specifier, so I guess that would fall under the category of enhancement request as well :)

Louis
_______________________________________________
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.


  • Follow-Ups:
    • Re: NSString format specifiers (was: Is Concatenation that complex?)
      • From: Allan Odgaard <email@hidden>
References: 
 >Is Concatenation that complex? (From: Adam <email@hidden>)
 >Re: Is Concatenation that complex? (From: Marco Scheurer <email@hidden>)
 >Re: Is Concatenation that complex? (From: Finlay Dobbie <email@hidden>)
 >Re: Is Concatenation that complex? (From: Bob Ippolito <email@hidden>)
 >Re: Is Concatenation that complex? (From: Gwynne <email@hidden>)
 >NSString format specifiers (was: Is Concatenation that complex?) (From: Allan Odgaard <email@hidden>)

  • Prev by Date: Re: NSStreamEventHasBytesAvailable not getting thrown
  • Next by Date: Re: NSStreamEventHasBytesAvailable not getting thrown
  • Previous by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Next by thread: Re: NSString format specifiers (was: Is Concatenation that complex?)
  • Index(es):
    • Date
    • Thread