[MonoTouch] can anyone help!! mssing .h, outlets disappear an unhandled exc

john_m0101 john at murray.gb.com
Thu Mar 1 15:35:53 UTC 2012


I've posted before but cant see the posts in the forum (I generally just send
an email to ximian lists) so I presume that's why I dont get any response so
I am trying positng to the forum on the web

I have had problems with .h files disappearing managed to recreate them from
a backup by cuting and pasting  - this is almost the same as Chris_m' s
issue. Right now I have bypassed it by creating a new project and cutting
and pasting - but one shouldnt have to do this its such a time wast
As jeff Stedfast says this impression may be because IB is reindexing - I
have had atleast 6 or 7 'hangs' with Xcode - a pop up says 'could not cloe
Xcode - timeout' when this also affect MD I get another pop up which says
the crash has been reported to Xamarin 

I dared to upgrade to Xcode 4.3 - seeing as how 5.2.5 of MT says it is
compatible - I thought this might solve the endless crashes and unhandled
exceptions 

I have gone back to a previous state of the code which WAS running - it
compiles but when I run it I get 
/Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C
exception thrown.  Name: NSUnknownKeyException Reason: [<mainview 0x9b281d0>
setValue:forUndefinedKey:]: this class is not key value coding-compliant for
the key radarB.
  at (wrapper managed-to-native)
MonoTouch.ObjCRuntime.Messaging:void_objc_msgSend (intptr,intptr)
  at MonoTouch.UIKit.UIWindow.MakeKeyAndVisible () [0x00000] in <filename
unknown>:0
  at iGar6.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app,
MonoTouch.Foundation.NSDictionary options) [0x00000] in <filename unknown>:0
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00000] in <filename
unknown>:0
  at iGar6.Application.Main (System.String[] args) [0x00000] in <filename
unknown>:0 [ERROR] FATAL UNHANDLED EXCEPTION:
MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. 
Name: NSUnknownKeyException Reason: [<mainview 0x9b281d0>
setValue:forUndefinedKey:]: this class is not key value coding-compliant for
the key radarB.
/

The KEY it seems to be complaining about "radarB" is an old button which
used to be on one of my views - long since deleted - clearly some reference
to it remains - I am not completely stupid so of course I have searched
EVERY file I can think of *.cs designer.cs *.h and *.m files and there i sNO
reference to radarB ANYWHERE - I have cleaned the code until I am blue in
the face

I have remmed out all code associated with teh view on which this button
used to appear but still I get this unhandled exception 
Barring creating a new project then tediously copying and pasting all the
code(which is what I did last time and have done about 10 times now) is
there anyway to get rid of this reference ??

Could someone pleeeese help 
JM









--
View this message in context: http://monotouch.2284126.n4.nabble.com/can-anyone-help-mssing-h-outlets-disappear-an-unhandled-exc-tp4435301p4435301.html
Sent from the MonoTouch mailing list archive at Nabble.com.


More information about the MonoTouch mailing list