This is a known problem, but it shouldn't be throwing an exception. It's just 
logging an error to the console that you can ignore. If it is throwing an 
actual exception and preventing printing from working, let me know.

-raleigh


On Sep 7, 2011, at 9:06 AM, Corbin Dunn wrote:

> 
> On Sep 7, 2011, at 5:58 AM, Andre Masse wrote:
> 
>> Hi,
>> 
>> I'm trying to implement printing in my application. I was following Aaron 
>> Hillegass book (Cocoa Programming for Mac OS X, chap 27) and while it does 
>> print, I got an exception. So, I downloaded the examples on the book's site 
>> (http://bignerdranch.com/book/cocoa®_programming_for_mac®_os_x_3rd_edition), 
>> ran it and got the same exception:
>> 
>> RaiseMan[7318] <Error>: kCGErrorIllegalArgument: _CGSFindSharedWindow: WID -1
>> RaiseMan[7318] <Error>: kCGErrorFailure: Set a breakpoint @ 
>> CGErrorBreakpoint() to catch errors as they are logged.
>> RaiseMan[7318] <Error>: kCGErrorIllegalArgument: 
>> CGSSetWindowShadowAndRimParametersWithStretch: Invalid window 0xffffffff
>> 
>> Any idea what's happening and how to squash this bug? This is Lion specific 
>> because the same code is running fine on Snow Leopard.
> 
> My advice would be to set a breakpoint @ CGErrorBreakpoint() to catch errors 
> as they are logged and then see what is happening.
> 
> corbin
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/ledet%40apple.com
> 
> This email sent to le...@apple.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to