[MonoDevelop] NSInvalidArgumentException

Alan alan.mcgovern at gmail.com
Sat Jan 18 14:34:29 UTC 2014


Hey,

This is a bug that was found and fixed yesterday. The issue is that the
'Action' attribute does not contain the selector name 'BDown:'. As such,
MonoTouch defaults to using 'BDown', which is missing the colon at the end.

The next alpha release will have this fix though.

Thanks,
Alan


On 16 January 2014 11:47, Megan Clodfelter <megan.clodfelter at gmail.com>wrote:

> NSInvalidArgumentException
>
> The documentation seems to suggest that my problem is the fact that I have
> not created an Event correctly, but as far as I can tell, I have.     I
> wanted to test the new interface (version 4.3.1 build 3).
> I created a NEW project (iOS, iPad with Storyboard, Tabbed)
> Compiled and ran in debug. Everything fine as expected.
> Launched MainStoryboard.
>
> Added 1 button on the first tab page
> Clicked on the Event tab and Created a single touch down event called:
> “BDown”
>
> FirstView Designer automatically  contained the following code:
>  [Action]
>         [GeneratedCodeAttribute ("iOS Designer", "1.0")]
>         partial void BDown (UIButton sender);
>
> In FirstView Controller, I added:   (Note: Intellisence saw and allowed me
> to create this method)
> partial void BDown (UIButton sender)
>          {
>             int a = 0;
>         }
> and placed a break point on the line a=0;
>
> Ran the app again in DEBUG mode.
>
> at  UIApplication.Main (args, null, "AppDelegate”);
> the application crashed with the following error message:
>
> Objective-C exception thrown.  Name: NSInvalidArgumentException Reason:
> -[FirstViewController BDown:]: unrecognized selector sent to instance
> 0xe464fd0
>
>
> As far as I can see, BDown was defined correctly and used correctly, yet
> it is not recognized.   I changed to this version of Monotouch as I was
> finding the earlier release version was removing Xcode definitions.
>
>
> Any advice would be deeply appreciated.
>
> Megan Clodfelter
>
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140118/3f31272d/attachment.html>


More information about the Monodevelop-list mailing list