• 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
NSCopyBits and expose events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSCopyBits and expose events


  • Subject: NSCopyBits and expose events
  • From: Paul Fox <email@hidden>
  • Date: Sun, 30 Jun 2002 10:28:22 +0000

In X Windows, you can bitblt an area by doing something
like:

XCopyArea(..., x, y, width, height, dstx, dsty)

This copies a rectangle in the window to another location.
One of the things this primitive handles is that if part of the
source region contains child windows (or any window obscuring the source),
then the bits which should have been copied, but couldnt be, will
result in ExposureEvents being sent to the client, forcing normal
redraw of the parts. The X server contains all this logic and looking
at the source - it full of region calculations. Nice. It works.
Its complex for the general case.

Now in cocoa we can do a bitblt with NSCopyBits, but it doesnt do
automatic exposures for the uncovered regions.

Other than replicating the full exposure logic from X in my app, is
there any way to achieve this in my app or any existing examples
of code to do this?

thanx
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSCopyBits and expose events
      • From: Allan Odgaard <email@hidden>
  • Prev by Date: Open A Sheet
  • Next by Date: Re: Cocoa Programming...
  • Previous by thread: Re: Open A Sheet
  • Next by thread: Re: NSCopyBits and expose events
  • Index(es):
    • Date
    • Thread