My Cocoa holdup
Quote from Forum Archives on November 15, 2009, 12:46 pmPosted by: fbcocoa.bw <fbcocoa.bw@...>
On 6 Nov 2009, at 20:28, Robert Covington wrote:> 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.
>I haven't a clue if this is on the right track Robert: <welovegod.org/groups/fbcocoa/www/BackgroundImage.zip>
Bernie
Posted by: fbcocoa.bw <fbcocoa.bw@...>
> 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.
>
I haven't a clue if this is on the right track Robert: <welovegod.org/groups/fbcocoa/www/BackgroundImage.zip>
Bernie