Re: [Pyobjc-dev] NSDocument based app
Brought to you by:
ronaldoussoren
From: Peter M. <zig...@po...> - 2002-11-06 09:52:22
|
On Wednesday, November 6, 2002, at 08:34 PM, Ronald Oussoren wrote: > > On Wednesday, Nov 6, 2002, at 10:21 Europe/Amsterdam, Peter Montagner > wrote: > >> >> On Wednesday, November 6, 2002, at 07:28 PM, Ronald Oussoren wrote: >> >>> >>> On Wednesday, Nov 6, 2002, at 08:53 Europe/Amsterdam, Peter >>> Montagner wrote: >>> >>>> The app works correctly in all the cases you mentioned. It will >>>> also correctly open a new window when it is brought to the front by >>>> clicking on the dock icon, if no other documents are open. Like I >>>> said, everything else I've tried works. >>> The Todo application that is part of the source-tree has the same >>> problem. That's not very helpfull, but at least this shows the >>> problem is probably in PyObjC. >> >> Good to hear. No wait, that's bad. Any idea what's causing it? > Not yet... I'll take a look. I'm pretty new to PyObjC, but I've been programming in Objective-C since the Mac OS X PB came out. >> For some unknown reason, that isn't working. It dies while executing >> >> - (void)runModalPrintOperation:(NSPrintOperation *)printOperation >> delegate:(id)delegate didRunSelector:(SEL)didRunSelector >> contextInfo:(void *)contextInfo > > The last argument is problematic: void pointers currently require > manual assistance. We can at least support automatic translation from > None to a NULL pointer. So (void *) arguments are broken? Hmm... well I can avoid that in my example app by using the print panel rather than the sheet. The panel doesn't require a call back. There are a few things that use the (void *)contextInfo paradigm though, so we should probably fix it. What's the current scheme? Peter |