Re: trying to use cached image as background in NSView

2017-04-04 Thread Ken Thomases
On Apr 3, 2017, at 8:54 PM, Patrick J. Collins wrote: > > I have a NSView in which I am drawing a waveform from a buffer. This > NSView has a child playhead element, that I want to move across the > waveform as it plays. The problem is, drawRect: is expensive and

trying to use cached image as background in NSView

2017-04-03 Thread Patrick J. Collins
Hi everyone, I have a NSView in which I am drawing a waveform from a buffer. This NSView has a child playhead element, that I want to move across the waveform as it plays. The problem is, drawRect: is expensive and anytime the playhead moves, the waveform has to draw itself all over again,