Common Misconceptions
Apr. 5th, 2010 07:49 pmXcode is a pile of garbage.
(that's not the misconception, that's the intro)
But, if you want to make apps with windows on the Mac, you have to use it, right? Wrong!
I finally got fed up with all the various shitty ways there are to make GUIs, on the Mac, from modern languages, so I am going to Fix The Problem.
(this is not to imply that RubyCocoa sucks, in fact, it's probably the only non-sucky one, but parts of it suck, like having to use Xcode)
As the very first baby step in this, I've written a program that opens a window, and unlike anyone who does the same in Xcode, I understand every. Last. Damn. Byte of it. So, I'll explain it here, and even leave this post public, that our Googly overlords might index it.
( A little code follows )
So, that's how you do it without the tools. Since this is just gcc, you could (say) embed it into another program, or write a Ruby extension for it, or whatever. Enjoy!
(that's not the misconception, that's the intro)
But, if you want to make apps with windows on the Mac, you have to use it, right? Wrong!
I finally got fed up with all the various shitty ways there are to make GUIs, on the Mac, from modern languages, so I am going to Fix The Problem.
(this is not to imply that RubyCocoa sucks, in fact, it's probably the only non-sucky one, but parts of it suck, like having to use Xcode)
As the very first baby step in this, I've written a program that opens a window, and unlike anyone who does the same in Xcode, I understand every. Last. Damn. Byte of it. So, I'll explain it here, and even leave this post public, that our Googly overlords might index it.
( A little code follows )
So, that's how you do it without the tools. Since this is just gcc, you could (say) embed it into another program, or write a Ruby extension for it, or whatever. Enjoy!