• 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: 64 bit cocoa version of HIViewFlashDirtyArea() ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?


  • Subject: Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
  • From: "David M. Cotter" <email@hidden>
  • Date: Sat, 31 Oct 2009 10:55:44 -0700

hmm, that seems to be what i'm looking for, except i want to flash only once, and i want to be able to turn it on and off during the time the app is already launched. any ideas about that?
if not, perhaps i need to use the "-getRectsBeingDrawn:count:" method and do it myself


On Oct 30, 2009, at 7:41 PM, Ben Haller wrote:

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


  • Follow-Ups:
    • Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
      • From: Kyle Sluder <email@hidden>
References: 
 >64 bit cocoa version of HIViewFlashDirtyArea() ? (From: "David M. Cotter" <email@hidden>)
 >Re: 64 bit cocoa version of HIViewFlashDirtyArea() ? (From: "Sean McBride" <email@hidden>)
 >Re: 64 bit cocoa version of HIViewFlashDirtyArea() ? (From: Ben Haller <email@hidden>)

  • Prev by Date: API for show event time as free/busy (iCal)
  • Next by Date: Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
  • Previous by thread: Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
  • Next by thread: Re: 64 bit cocoa version of HIViewFlashDirtyArea() ?
  • Index(es):
    • Date
    • Thread