Re: [Pyobjc-dev] NSBeginAlertSheet trouble
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-06-18 17:38:23
|
On Wednesday, Jun 18, 2003, at 17:11 Europe/Amsterdam, Just van Rossum wrote: > Dinu Gherman wrote: > >> 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") > > Or: sheetDidEnd_returnCode_contextInfo_ = AppKit.NSEndSheetMethod( sheetDidEnd_returnCode_contextInfo_) Ronald |