https://developer.apple.com/xcode/ 'Download Xcode 4 for free.'
In addition, Macs ship with a certified compliant Unix interface, and a wide variety of developer tools such as a powerful CLI shell (only recently added on Windows), compilers, vim, etc.
And unlike Windows, Apple donates quite a lot of their code to open source, including the kernel of their OS. Does Windows do that? I don't think so.
"You designed [system #42]. I'm trying to accomplish [nifty goal] that is an obvious extension of what you suggest that [system #42] should be used for. You said some examples are included with the most recent Windows SDK. After downloading it, I found no such example and the problem seems a little intractable. What gives?"
The response contained an attachment of the overlooked/unincluded examples, and some clarifications about the system I was working with and even explained that some of what I was doing was explicitly NOT possible, for very good reasons (for the record, an earlier version of Windows Search).
I say this as a desktop Linux user, where at times my only recourse for "Why won't [application x] properly fullscreen?" is to go and do just what you suggest: an easter egg hunt on google. Furthermore, the end-all-be-all solution is the same as it is with our Windows example: get in touch with someone at the project and ask for clarification. The difference lies in that with one case, it's someone's job to provide clarification for the system they designed. In the other case, the possibilities are too varied to speculate on (e.g. unmaintained project, antisocial developer).
What really sets open source apart for me in terms of hacking is that I can change the way any component operates, instead of having to jerryrig what would be a simple change using external APIs.
Apple does not distribute any free tools to develop and run software for their systems, period. If you want to be a free hacker, it's Linux or Windows, currently. And as another person responded to you, you cannot use the UI elements via javascript and all. Get some docs, seriously.