Hey folks,
I have probably a very simple problem, but since I'm a more like Win32/Linux programmer, I found Mac OS X API so so so complicated and I even couldn't find any useful docs or samples.
So I need to create a simple window without title (since I have my own) and be able to paint in it (only bitmaps, since all rendering is customized), handle all necessary events, such as mouse/keyboard... custom GUI.
I was able to create a window, handle mouse events. But I'm still unable to paint into the window!!! What a basic task?? There are many events such kWindowDrawFrame, kControlDraw etc. I don't know what is the difference, but what I want is the most simple approach:
1) OS needs to redraw part of the window -> sends an event or something -> I'll paint it
2) When I need to redraw part of the window (e.g. user clicks on a widget), I need to tell the OS to "invalidate" it and let me redraw.
Can you please point me somewhere?
Thanks in advance!
I have probably a very simple problem, but since I'm a more like Win32/Linux programmer, I found Mac OS X API so so so complicated and I even couldn't find any useful docs or samples.
So I need to create a simple window without title (since I have my own) and be able to paint in it (only bitmaps, since all rendering is customized), handle all necessary events, such as mouse/keyboard... custom GUI.
I was able to create a window, handle mouse events. But I'm still unable to paint into the window!!! What a basic task?? There are many events such kWindowDrawFrame, kControlDraw etc. I don't know what is the difference, but what I want is the most simple approach:
1) OS needs to redraw part of the window -> sends an event or something -> I'll paint it
2) When I need to redraw part of the window (e.g. user clicks on a widget), I need to tell the OS to "invalidate" it and let me redraw.
Can you please point me somewhere?
Thanks in advance!