[MonoDevelop] NSInvalidArgumentException
    Megan Clodfelter 
    megan.clodfelter at gmail.com
       
    Thu Jan 16 16:47:21 UTC 2014
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140116/92e67ba6/attachment.html>
    
    
More information about the Monodevelop-list
mailing list