Currently I have created an interface within the Interface builder. Within this interface I have created three buttons, named ‘btnOne’, ‘btnTwo’ and ‘btnThree’.
I want to be able to perform a simple function on the click of these buttons.
My question is, how to I connect my buttons from the myGuiView.xib, to the myGuiView.mm/h and then perform the function.
Any help would be perfect. Thank you.
you select button. Then connect from connection event (ex: touch) to file owner into one method in define myGuiView.mm/h that will receive event.
They was an error in file owner class definition, that I thing is not fix in GuiView example of OF iphone. Look this previews post can help you: http://forum.openframeworks.cc/t/add-subview-to-myguiview/6279/0
Thanks for the reply.
Can you explain this in more detail, and give me a code example if possible. I’m quite confused.
"you select button. Then connect from connection event (ex: touch) to file owner into one method in define myGuiView.mm/h that will receive event. "
I recommend you to can take a look at videos in youtube for understand the interface builder (here a random video that you can see how use interface building):
Also, you can look the example posted in other thread. It is for 0.62, but it is not difficult to pass to OF07.