• 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: Simple printing hangs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple printing hangs


  • Subject: Re: Simple printing hangs
  • From: James Walker <email@hidden>
  • Date: Wed, 08 Apr 2009 10:05:48 -0700

I. Savant wrote:
On Apr 7, 2009, at 8:33 PM, James Walker wrote:

I want to print some text that will almost surely fit on one page. I thought I could just set up a window without making it visible, and print the content view of the window, with code like this:

How about running it in the debugger and pressing pause? You can examine the call stack. My bet's on an infinite loop. Any takers? ;-)

Here's the call stack, none of which is my code except for the last line.

mach_msg_trap
mach_msg
CFRunLoopRunSpecific
CFRunLoopRunInMode
RunCurrentEventLoopInMode
ReceiveNextEventCommon
_AcquireNextEvent
_RunAppModalLoop
RunAppModalLoopForWindow
-[NSApplication _realDoModalLoop:peek:]
-[NSApplication runModalSession:]
-[NSConcretePrintOperation(NSInternal) _isCancelledAfterHandlingUserEvents]
-[NSView(NSPrintingInternal) _printForCurrentOperation]
-[NSConcretePrintOperation _renderView]
-[NSConcretePrintOperation runOperation]
-[MyController printInfo]


I tried to reproduce the problem in a toy app, and naturally I couldn't. So apparently something that I didn't think was relevant, was. Possibly the fact that this is running in an app with a Carbon event loop.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Simple printing hangs
      • From: Raleigh Ledet <email@hidden>
References: 
 >Simple printing hangs (From: James Walker <email@hidden>)
 >Re: Simple printing hangs (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Programatically creating NSMenu?
  • Next by Date: noob: Question about senders and views
  • Previous by thread: Re: Simple printing hangs
  • Next by thread: Re: Simple printing hangs
  • Index(es):
    • Date
    • Thread