• 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: NXPing()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: Can server send message to client through NSConnection
  • Next by Date: Mix & Match?
  • Previous by thread: NXPing()
  • Next by thread: Mix & Match?
  • Index(es):
    • Date
    • Thread