On 30-Oct-09, at 9:17 PM, Sean McBride wrote:

David M. Cotter (m...@davecotter.com) on 2009-10-30 9:04 PM said:

anyone have some sample code for a function that does the equivalent
of HIViewFlashDirtyArea() ?

i'd like to have this i the debug version of my program to help flush
out inefficient invalidating.

or:

how do i fetch the invalid "region" of an NSWindow* ?

Never tried, but... if I search for "flash" in this doc:

<http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html>

I think NSShowAllDrawing might help you.

I just tried "-NSShowAllDrawing YES" in "arguments to be passed on launch" and it worked quite nicely. The only odd thing is that it seems to flash each view two times for every one time it gets drawn. I verified by other means (let's hear it for NSLog!) that a given view was in fact getting called to draw only once, but was flashing twice. I don't know if there's a good reason for that behavior or not. :-> Apart from that issue, it worked quite nicely.
  Thanks for the tip, Sean.

Ben Haller
Stick Software

_______________________________________________

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