Re: [Pyobjc-dev] Silly Cocoa question
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-06-17 21:02:59
|
On dinsdag, jun 17, 2003, at 16:22 Europe/Amsterdam, Dinu Gherman wrote: > Jack Jansen: > >> I assume there's a way to go from the >> button to the window to the document, but I don't know >> enough Cocoa to do this. > > Untested from memory... have you tried this? > > def foo_(self, buttonSender): > controller = buttonSender.window().windowController() Thanks, that did it! I could have guessed it, really... -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |