• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing


  • Subject: Re: Printing
  • From: Paul Fox <email@hidden>
  • Date: Sat, 7 Sep 2002 17:16:06 +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

Thanks Chris - will read that to refresh my memory on the area of modal
dialogs.

regards

+-------------------------------------------------------------------------+
| Hint of the day: Look up <Ctrl-F1> in the User Guide. |
+-------------------------------------------------------------------------+
| CRiSP - Flexible editor | CRiSP, syn. for BRIEF |#
| | Internet: email@hidden |#
| If you get no reply for | WWW: (mine) http://www.crisp.demon.co.uk |#
| support, please check your | WWW: http://www.crisp.com |#
| Reply-To: email address. | WWW: http://www.pacemaker.co.uk |#
+-------------------------------------------------------------------------+#
###########################################################################
_______________________________________________
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.

  • Prev by Date: Re: how to centralize functionality more elegantly?
  • Next by Date: Document Based (I'm semi lost!)
  • Previous by thread: Re: Printing
  • Next by thread: Abstract classes
  • Index(es):
    • Date
    • Thread