I've realised a while ago that the fact that OSX is Unix-based and fairly open - and therefore used by many developers for non-Apple development -- happened purely by accident, because Apple needed a better replacement for the old MacOS 9 and NExTSTEP was readily available. When developing iOS they made it more controlled and closed, and they're now following that strategy to the desktop.