NSLog format arguments

Although this is basic, where do I find the format arguments for NSLog? As one would say in C++, where's the list for the escape sequences...


MacMage

Replies

Here:


https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html


Note that this is essentially an extension of the IEEE printf format specifiers, so go to the linked page for details of (say) format options.

Thanks Q


When I first looked at this, I said, oh no, the internet. How does one know how to get there? I was messing around and I found while working with Xcode 8 under the Help menu "Documentation and API Reference". From there, right at the very top is a search textedit field. Entered NSLog but there was nothing obvious until I clicked on NSLogv. There I found the connection to "String Format Specifiers"...