[Pyobjc-dev] NSSavePanel causing SIGBUS 10
Brought to you by:
ronaldoussoren
From: Greg H. <gr...@ob...> - 2003-04-29 07:20:23
|
Hello, We're trying to display a standard NSSavePanel save file sheet. The save sheet is displayed. The Cancel button works. Save causes a SIGBUS 10. Any clues ? def saveAs_(self, sender): sp = NSSavePanel.savePanel() sp.beginSheetForDirectory_file_modalForWindow_modalDelegate_didEndSelect or_contextInfo_( '~/Documents', None, self.mainWindow, self, 'didEndSheet:returnCode:contextInfo:', 0) print "end of save as" def didEndSheet_returnCode_contextInfo_(self, sheet, return_code, contextInfo): print 'Did End' if return_code == NSOKButton: self.filename = sheet.filename() print "saving %s items as %s" % (len(self.sched), self.filename) self.sched.save(self.filename) Greg Hamilton |