Hello, It seems to be a problem in the way the binding is done for "GetRowColumnForPoint". It should use by-ref integers instead of integers. I will take a look at it. Can you log a bug in the tracker ( http://tracker.monobjc.net) ?
Regards, Laurent Etiemble. 2010/7/30 Fluffy D. Bunny <fluffydevilbu...@gmail.com> > Hi All, > > I have subclassed NSMatrix which is working fine and I have added the > following code. > > [ObjectiveCMessage("rightMouseDown:")] > public override void RightMouseDown (NSEvent theEvent) > { > NSPoint location = this.ConvertPointFromView(theEvent.LocationInWindow, > null); > int row = 0; > int column = 0; > bool result = this.GetRowColumnForPoint(row, column, location); > this.SendMessageSuper(ThisClass, "rightMouseDown:", theEvent); > } > > When I call GetRowColumnForPoint I crash with the following error: > > Stacktrace: > > at (wrapper managed-to-native) 2D864483.pinvoke > (intptr,intptr,int,int,Monobjc.Cocoa.NSPoint) <0x00004> > at (wrapper managed-to-native) 2D864483.pinvoke > (intptr,intptr,int,int,Monobjc.Cocoa.NSPoint) <0x00004> > at 2D864483.objc_msgSend (intptr,intptr,object[]) <0x000c9> > at Monobjc.Bridge.Generators.DynamicMessagingGenerator.SendMessage<bool> > (string,intptr,intptr,object[]) <0x001ac> > at Monobjc.ObjectiveCRuntime.SendMessage<bool> > (Monobjc.IManagedWrapper,string,object[]) <0x00078> > at Monobjc.Cocoa.NSMatrix.GetRowColumnForPoint > (int,int,Monobjc.Cocoa.NSPoint) <0x000cb> > > Am I calling this wrong? > > Any help on this would be appreciated. I need to get the cell that was > clicked on. > > Thanks > > FdB >