• 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
NSView getRectsBeingDrawn and WebKit plugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView getRectsBeingDrawn and WebKit plugin


  • Subject: NSView getRectsBeingDrawn and WebKit plugin
  • From: Fielke Gary <email@hidden>
  • Date: Wed, 1 Jun 2005 11:24:15 +0930

Hi all,

I know this possibly is better asked in webkit-sdk but I'll try here first......

I have developed a very small test app that uses getRectsBeingDrawn inside a custom view's drawRect method to draw two small portions of a larger image.
(Of course, elsewhere in the app [myCustomView setNeedsDisplayInRect:rect1] and [myCustomView setNeedsDisplayInRect:rect2] are used.)
As an application, the getRectsBeingDrawn correctly returns the two rects.


However, I have now converted this app to a WebKit plugin (Tiger only) so the customview now appears inside a webkit app such as Safari. Using the same code as above, the getRectsBeingDrawn now only returns ONE rect, not two. This single rect is the union of the two smaller rects.

Consequently, a webkit plugin I'm working on has less than optimal drawing performance.

Anyone have any thoughts on why this is so?

Thanks,
Gary

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: NSFontDescriptor origin question.
  • Next by Date: Bindings and NSTableView example
  • Previous by thread: NSFontDescriptor origin question.
  • Next by thread: Bindings and NSTableView example
  • Index(es):
    • Date
    • Thread