Hello, Do you use KVC with fields (i.e. using bindings directly with class field) ? If yes, have you tried bindings with accessors instead ? Can you post the classes code (at least the part related to the bindings) ?
Regards, Laurent Etiemble. 2009/3/24 Mario De Clippeleir <[email protected]> > Hi, > > > > I have a textfield, a slider and a checkbox. The textfield and slider are > connected through bindings using Model Key Path. That works fine, but when I > change the value (other than the initial one)and then click the checkbox I > get the following error : > > Unhandled Exception: System.NullReferenceException: Object reference not > set to an instance of an object > > at (wrapper unknown) int:PtrToStructure (intptr,object) > > at (wrapper managed-to-native) > System.Runtime.InteropServices.Marshal:PtrToStructure(intptr,System.Type) > > at > Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController.ImportMembers(Test.Mac.ApplicationController > instance) [0x00000] > > at > Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController.CheckClicked(IntPtr > receiver, IntPtr selector) [0x00000] > > at (wrapper > native-to-managed)Monobjc.Dynamic.Proxies.Test.Mac.ApplicationController:CheckClicked(intptr,intptr) > > at (wrapper managed-to-native) 503BA7BB:pinvoke (intptr,intptr) > > at 503BA7BB.objc_msgSend (IntPtr receiver, IntPtr selector, > System.Object[] parameters) [0x00000] > > at > Monobjc.Bridge.Generators.DynamicMessagingGenerator.SendMessage(System.String > message, IntPtr receiver, IntPtr selector, System.Object[] parameters) > 0x00000] > > at Monobjc.ObjectiveCRuntime.SendMessage (IManagedWrapper receiver, > System.String selector, System.Object[] parameters) [0x00000] > > at Monobjc.Cocoa.NSApplication.Run () [0x00000] > > at Monobjc.Cocoa.NSApplication.RunApplication () [0x00000] > > at Test.Mac.Program.Main (System.String[] args) [0x00000] > > > > What is causing this problem ? > > > > Br, > > > > Mario >

