Where can I find complete documentation on NSDictionary? [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
开发者_C百科Closed 5 years ago.
Improve this questionThe documentation for NSDictionary
seems incomplete. Where can I find a complete version?
For instance, where do I find the documentation which fully explains keysSortedByValueWithOptions:usingComparator:
. The docs with iOS 4.3 fail to define what "options" there are.
Those are the docs; you can often find other tidbits of information doing a web search (http://cocoadev.com is a good resource, as is SO, of course), but there's no "more complete" version of the Apple documentation.
For this particular case, a search for "sort options" turns up the Foundation Constants Reference, which contains an enum
of Sort Options.
Interestingly, I just noticed that -[NSArray enumerateObjectsWithOptions:usingBlock:]
does explain the available options, so this is definitely an oversight. You should send in a doc bug report
Yep, the Apple docs are what the Apple docs are -- some of the worst in the industry. Most notably they seem to have been built without knowledge of the concept of HTML links, so stuff that should be directly linked isn't. You often end up having to do a web search for some details, and after a while you learn that a lot of secrets are hidden in the Foundation Data Types and other such documents that you'd never find on a "top down" search of the Apple pubs "tree".
(Eg, look at the Java pubs, and the pubs for Qt. In both cases, when you look at the definition for a class, you can easily identify all of the implemented fields/methods, including those of superclasses. Only in the Apple docs do you have to manually dig through the superclass and protocol definitions to find everything.)
精彩评论