• 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: off screen drawing with cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: off screen drawing with cocoa


  • Subject: Re: off screen drawing with cocoa
  • From: Andrew Farmer <email@hidden>
  • Date: Tue, 24 Apr 2007 01:52:55 -0700

On 24 Apr 07, at 01:43, Warwick Hall wrote:
ok, so i create an NSWindow, and set the content view to the WebView.

exception is still thrown, because the defer is YES on the window, so I change that to NO.

then if you look at my previous code, i had a NSGraphicsContext created in the main() function using the NSDictionary attribute approach. Well, another exception is thrown saying invalid graphics context, so i change it to the graphics context for the NSWindow.

Now, when i run it, it runs without exception, a postscript file is created with the size (300.0, 500.0), but it is blank! all that trouble and it comes up blank?!?!?!

The WebView might take some time to render the page. Start a run loop and wait for the page to finish loading, then print it once it's done.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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


References: 
 >off screen drawing with cocoa (From: Warwick Hall <email@hidden>)
 >Re: off screen drawing with cocoa (From: Nick Zitzmann <email@hidden>)
 >Re: off screen drawing with cocoa (From: Warwick Hall <email@hidden>)
 >Re: off screen drawing with cocoa (From: Half Activist <email@hidden>)
 >Re: off screen drawing with cocoa (From: Michael Watson <email@hidden>)
 >Re: off screen drawing with cocoa (From: Warwick Hall <email@hidden>)

  • Prev by Date: Re: off screen drawing with cocoa
  • Next by Date: Re: off screen drawing with cocoa
  • Previous by thread: Re: off screen drawing with cocoa
  • Next by thread: Re: off screen drawing with cocoa
  • Index(es):
    • Date
    • Thread