Search code examples
objective-ccocoacopynsscrollview

Use the same copying technique as NSScrollview


The NSScrollView copies its document view when it is scrolling. How can I use this same idea of copying a part of my view to paste it later when everything has moved.


Solution

  • You probably want to create a bitmap image rep for caching purposes and cache to it. You can then either draw it directly or wrap it in an NSImage and draw that.