[Pyobjc-dev] Cocoa Sheets
Brought to you by:
ronaldoussoren
From: Bob S. <rsw...@tr...> - 2003-06-11 16:22:09
|
I'm trying to use NSApplication.beginSheet_modalForWindows_modalDelegate_didEndSelector_contex tinfo_ to create a sheet on a window, but I don't seem to be setting it up right . When it goes to call the didEndSelector method I get a bus error :( The method that I want called is defined in class MyClass as: def sheedDidEnd_sheet_returnCode_contextInfo_(self, sheet, returnCode, contextInfo): I'm trying to invoke the sheet as: application.beginSheet_modalForWindow_modalDelegate_didEndSelector_contextin fo( \ self.panel, self.window, self, sheedDidEnd_sheet_returnCode_contextInfo_selector, 0) where I have set up sheedDidEnd_sheet_returnCode_contextInfo_selector with: sheedDidEnd_sheet_returnCode_contextInfo_selector = objc.selector \ (sheedDidEnd_sheet_returnCode_contextInfo_, signature='v@:@ii') I don't see where the signature format is specified, so I took a guess (!) How do I define the selector so that method gets called correctly? Is there a better way to do this? Thanks for your help. Bob Swerdlow COO Transpose rsw...@tr... 207-781-8284 http://www.transpose.com ---------------------------------- Fight Spam! Add this link to your signature (as I did): http://wecanstopspam.org Click through to find out more. ---------------------------------- |