OS X Carbon GUI

This is a discussion on OS X Carbon GUI within the C Programming forums, part of the General Programming Boards category; Positng this question here for lack of a better place to put it.
Here is the code I'm messing with:
...

The code does create a window. Te problem is the window won't respond to anything.

According to the API docs, the call to RunApplicationEventLoop() is supposed to install the default event handler to the window. That default handler is supposed to handle the basic requests; maximize, minimize, resize, and move. Except its not doing that. The window will maximize and minimize, but not move or resize.

Am I compiling it wrong (It seems to want to be a console app as opposed to a GUI app)? Or is there some other issue with my code?

My guess is the event loop that is created is for the thread rather than the application, since if I install my own event handler it never recieves anything. But I just don't know, and the documentation Apple has doesn't cover windows that aren't made from NIB's very well.

[EDIT]
Well even if its creating an event loop for the thread that shouldn't matter. I replaced the call to RunApplicationEventLoop() with my own event loop: