Forum Navigation
You need to log in to create posts and topics.

My Cocoa holdup

Posted by: artlythere <artlythere@...>

I have a project I want to do in Cocoa, because I need to become more
modern.

But it's hard to figure out how to do things which are rather simple
in FB.

I have a master image for a midi sequencer, and I need to fathom how
to setup rects on that image, then make them behave as buttons, etc.

In FB, I can put the image in a GWorld, check PtInRect, and invert or
otherwise draw a 'pushed' image, and go from there. or can use a
custom control draw code (MakeIntoFBbutton type stuff, etc)

In Cocoa...I am not even sure how to place the background image in
the window. I fathomed one way in IB, but not sure it is proper
approach.

I guess I could maintain an array of NSRects or something and then
draw the buttons , etc.

rc