[Pyobjc-dev] Passing selectors as parameters
Brought to you by:
ronaldoussoren
From: Sean G. <pr...@cf...> - 2003-05-12 07:59:56
|
Hello all, I have an NSListView whose double-click actions I would like to handle. NSListView.setDoubleAction_( action ) requires a selector. My problem is that I'm not sure how to pass a method as a selector. I would like to pass a class "instance" method (i.e. "def didDoubleClick( self ):") that belongs to the class I use as the listview's data source. What is the correct way to do this? I have tried a number of ways, and have searched for answers but have found no working solution yet. Thanks, Sean |