🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.programmer
Article #2037

Re: How do I really flush a window?

#2037
From: Gordon Van Huizen
Date: Sat, 12 Dec 1992 18:42
24 lines
1418 bytes
In article <Bz2BwJ.6sz.2@cs.cmu.edu> rwb@alexander.VI.RI.CMU.EDU  
(Robert Berger) writes:
> 
> I have a method that changes a view. I need the changes to be
> visible immediately, and not wait until my method returns.
> 
> How do I flush the new data to the display? I've tried various
> combinations of flushWindow, buffering/non-retained, etc. With every
> technique I tried, the new data does not become visible until my
> method exits.
> 
> How do I make the changes visible immediately?

You need to use NXPing() to cause the running app to pause
and wait for the Window Server to execute all PostScript
sent to it. I have found that this is required in more cases
than those eluded to by the NeXT docs. 
  
Gordon
-- 
----------------------------------------------------------------
Gordon Van Huizen           vox: 619.488.9411  fax: 619.488.3045
Metrosoft                   gvh@metrosoft.com [NeXTmail welcome]
----------------------------------------------------------------
Technical Details
Message-ID: <1992Dec12.184239.6976@metrosoft.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!hd0258!gvh
References: <Bz2BwJ.6sz.2@cs.cmu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!psinntp!hd0258!gvh
From: gvh@metrosoft.com (Gordon Van Huizen)
Subject: Re: How do I really flush a window?
Message-ID: <1992Dec12.184239.6976@metrosoft.com>
Sender: gvh@metrosoft.com
Reply-To: gvh@metrosoft.com (Gordon Van Huizen)
Organization: Metrosoft
References: <Bz2BwJ.6sz.2@cs.cmu.edu>
Date: Sat, 12 Dec 1992 18:42:39 GMT
Lines: 24