Re: [Pyobjc-dev] NSDocument based app
Brought to you by:
ronaldoussoren
|
From: Peter M. <zig...@po...> - 2002-11-06 07:54:15
|
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.
Except printing. How do selectors work? Specifically I need to call
runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo:
How do I pass a selector to this? I actually want to send a NULL for
the selector (I have nothing to do when the sheet is closed). In ObjC
I'd do something like:
[self runModalPrintOperation:op
delegate:nil
didRunSelector:NULL
contextInfo:NULL];
If you can't do a NULL selector in PyObjC, I'd settle for knowing how
to specify a valid selector :-)
Thanks,
Peter
On Wednesday, November 6, 2002, at 05:05 PM, bb...@ma... wrote:
> Cool! This sounds like an excellent example to (a) include in the
> Examples/ directory and (b) model the Multi-Document project template
> after!
>
> In terms of the bug: Does the app work correctly when you drag-n-drop
> a file onto the dock icon to open the document? I recently put
> together a multi-doc architecture app and everything works perfectly
> but that-- I didn't notice the lack of an untitled doc on launch
> because I implemented the method that *should* disable it from the
> start (but never checked that the method was actually invoked).
>
> b.bum
|