Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView getRectsBeingDrawn and WebKit plugin



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.