Re: NXPing()
Re: NXPing()
- Subject: Re: NXPing()
- From: Marcel Weiher <email@hidden>
- Date: Wed, 28 Nov 2001 20:03:10 +0100
On Mittwoch, November 28, 2001, at 07:20 Uhr, Simson Garfinkel wrote:
I've been looking for an equivillent of NXPing() on Cocoa but can't
seem to
find one. Does one just use [NSView display] and hope?
Well, drawing is now done by Quartz, a client-side library, so you don't
have a bunch drawing commands sitting in a communications buffer waiting
to be sent to the WindowServer for execution. However, I have found
that flushing the current graphics context ( [[NSGraphicsContext
currentContext] flush]; ) and/or flushing the current window can help in
certain situations.
I wanted to check my usage in a sample program just now but found that I
had managed to eliminate all manual flushing. Chances are you actually
don't need to flush either.
Marcel
--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
References: | |
| >NXPing() (From: "Simson Garfinkel" <email@hidden>) |