• 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 exception on Lion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing exception on Lion


  • Subject: Re: Printing exception on Lion
  • From: Corbin Dunn <email@hidden>
  • Date: Wed, 07 Sep 2011 09:06:27 -0700

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 (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: Printing exception on Lion
      • From: Raleigh Ledet <email@hidden>
References: 
 >Printing exception on Lion (From: Andre Masse <email@hidden>)

  • Prev by Date: Re: nonatomic vs atomic assign/retain
  • Next by Date: Re: Printing exception on Lion
  • Previous by thread: Re: Printing exception on Lion
  • Next by thread: Re: Printing exception on Lion
  • Index(es):
    • Date
    • Thread