Re: Printing
Re: Printing
- Subject: Re: Printing
- From: Chris Ross <email@hidden>
- Date: Sat, 7 Sep 2002 10:21:02 +0100
On Saturday, September 7, 2002, at 09:53 am, Paul Fox wrote:
On Fri, 06 Sep 2002 08:38:52 +0100, email@hidden said:
I am trying to add printing support to my app and am being totally
stumped
on how to do this. I have read all the apple docs and scoured the
web -
very few examples. I have scoured the list for past examples.
[snip]
Ok - so if I dont call runOperation, but call
[op runOperationModalForWindow: ...]
I get the popup but the function appears to return straightaway.
I can think of two misconceptions you might be having.
(1) If you're coming from a REALbasic background - and it sounds
vaguely as
if you might be - you may not understand what "modal" means in a Cocoa
context. The notion "run modal" in Cocoa has to do with limitations
on what
events the application will accept; it does not, as in REALbasic,
magically
and mysteriously stop the execution of the current method until the
modal
window is gone. This is why it typically takes two or three methods
to put
up a modal window in Cocoa: one to put it up (and it typically then
returns
immediately), one to react to button presses, and (optionally) one to
take
control when the modal state is brought to an end (by the second
method).
No - I am not from REALbasic background but possibly what I want to do
is similar. Thanks for the hint about modality. So do I just
run a new [NSApp ...] method to wait until the dialog is dismissed?
Not to do with printing but I groked sheets after I read this:
http://www.macdevcenter.com/pub/a/mac/2001/10/05/cocoa.html
Regards,
Chris
--
Chris Ross - email@hidden -
http://www.darkrock.co.uk
Ferite Programming Language -
http://www.ferite.org
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.