开发者

Where can I find complete documentation on NSDictionary? [closed]

开发者 https://www.devze.com 2023-04-10 23:21 出处:网络
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question is seeking recommendations for books, tools, software libraries, and more. It does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

The 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.)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号