Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
- Subject: Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
- From: Ben Haller <email@hidden>
- Date: Fri, 30 Oct 2009 22:41:42 -0400
On 30-Oct-09, at 9:17 PM, Sean McBride wrote:
David M. Cotter (email@hidden) 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 (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