Re: [Pyobjc-dev] NSBeginAlertSheet trouble
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-06-18 15:12:14
|
Dinu Gherman wrote: > > NSSelectorFromString() does nothing in PyObjC, just use the string, > > or a method object. > > I've used NSSelectorFromString() before and it seemed to work, but in > this case none of this works. NSSelectorFromString() surely "works", but it does nothing: >>> sel = "foo" >>> NSSelectorFromString(sel) is sel True >>> > I reinstalled from CVS (after SF access troubles), but it's still > not clear to me what the code for a void pointer should be. Isn't > there some example to point to? The list archives mention this > issue specifically for sheets, but also don't give any sample > snippets. The code I posted before would make a good start for > a sample, maybe. Not tested: def sheetDidEnd_returnCode_contextInfo_(self, sheet, returnCode, info): ... sheetDidEnd_returnCode_contextInfo_ = objc.selector( sheetDidEnd_returnCode_contextInfo_, signature="v@:@ii") Just |