Re: best way to determine if portion of window is visible?

2008-08-20 Thread Negm-Awad Amin
Am Di,19.08.2008 um 18:13 schrieb Jason Bobier: Hi Amin, Unless I am misunderstanding, this would tell me if it was onscreen, but not if the window was exposed (not hidden by other windows). Ah, probably I misunderstood you. Cheers, Amin Jason On Aug 15, 2008, at 5:03 PM, [EMAIL

Re: best way to determine if portion of window is visible?

2008-08-20 Thread Shawn Erickson
On Tue, Aug 19, 2008 at 9:13 AM, Jason Bobier [EMAIL PROTECTED] wrote: Hi Amin, Unless I am misunderstanding, this would tell me if it was onscreen, but not if the window was exposed (not hidden by other windows). What he suggested is basically what you need with the modification of asking

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
Hey Andy, It's not really the cpu cycles that I'm worried about. It's how quickly a large number of windows closes. I'm fading each window for 1/2 second, in order of appearance. It looks really nice, but there isn't really a need to fade the windows that aren't visible and in fact,

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
Hi Mike, I'm using an NSViewAnimation to fade the windows, which I suspect uses the alpha channel. A window close is nearly instantaneous, so I'm not worried about the tiny window between when I check to see if the window is exposed and when it closes. Of course, because of the

Re: best way to determine if portion of window is visible?

2008-08-15 Thread Andy Lee
On Aug 15, 2008, at 2:18 PM, Jason Bobier wrote: I'd like to fade my window out if any portion of it is visible to the user, otherwise I simply want to close it for speed. Is there an easy way to determine if some portion of the window is visible? Offhand I'd say if they can't see it, they

Re: best way to determine if portion of window is visible?

2008-08-15 Thread Michael Ash
On Fri, Aug 15, 2008 at 2:18 PM, Jason Bobier [EMAIL PROTECTED] wrote: Hey folks, I'd like to fade my window out if any portion of it is visible to the user, otherwise I simply want to close it for speed. Is there an easy way to determine if some portion of the window is visible? If you're