For easier implementation I'm trying to use a NSSearchFieldMBS wiring the 
Action event to a method with AddHandler.
The program compile and seems working, but the Action handler is never called.
Here it's the code:

on my instance of CocoaControl.GetView event:

Function GetView() As NSViewMBS
  myField = new NSSearchFieldMBS(0, 0, me.width, me.height)
  AddHandler myField.Action, weakAddressOf FieldAction
  return myField
End Function

myField is a property of the window declared as NSSearchFieldMBS

the Action event handler:

Sub FieldAction(sender as NSSearchFieldMBS)
  msgBox "Action"
End Sub

The field is displayed and it's functional, but I never get the FieldAction() 
method called.

Is this something not possible with MBS plugins or just a bug?
The application target is Cocoa.

Thanks,

Massimo Valle



SACO Software and Consulting GmbH, Mühlgasse 5, D-97840 Hafenlohr
Tel.: ++49 9391 90890-0, Fax: ++49 9391 90890-99, E-Mail: [email protected]
Amtsgericht Würzburg HRB 5410, Geschäftsführer: Peter Schubert, 
Dipl.-Wirt.ing.(FH) Thorsten Beck

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to