[Mono-osx] Could not connect the action to target of class MainWindowController
John Main
themains2 at gmail.com
Sat Jan 26 14:44:19 UTC 2013
Well I figured out my issue. I hadn't created a partial class in my
mainwindowcontroller.cs file.
So all is good.
Best regards,
John Main
On 2013-01-25, at 4:32 PM, jmain <themains2 at gmail.com> wrote:
> I am having an issue. If I create a new project and add 1 botton to
> interface builder and create an IBAction it works fine. I can create a
> buttonclick handler to do stuff. If I add more IBactions for other buttons
> and controls I get the error Could not connect the action testbuttonpress:
> to target of class MainWindowController.
>
> In my MainWindowController.h I have - (IBAction)testbuttonpress:(id)sender;
> and .m file - (IBAction)testbuttonpress:(id)sender {
> }
>
> These were generated by control dragging the Button to the right.
>
> hte MainWindow.designer.cs file has:
>
> [Action ("testbuttonpress:")]
> partial void testbuttonpress (MonoMac.Foundation.NSObject sender);
>
> I am using monodevelop 3.1.1
>
>
>
> --
> View this message in context: http://mono.1490590.n4.nabble.com/Could-not-connect-the-action-to-target-of-class-MainWindowController-tp4658292.html
> Sent from the Mono - OSX mailing list archive at Nabble.com.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
More information about the Mono-osx
mailing list