Re: Simple printing hangs
Re: Simple printing hangs
- Subject: Re: Simple printing hangs
- From: Raleigh Ledet <email@hidden>
- Date: Wed, 8 Apr 2009 10:40:35 -0700
Yes, this is a known problem with Cocoa printing from a Carbon
application. We hope to have a fix in a future version of the OS.
-raleigh
On Apr 8, 2009, at 10:05 AM, James Walker wrote:
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
_______________________________________________
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