Skip navigation.
 
mlRe: replacing NSViewAnimation with CoreAnimation
FROM : haller
DATE : Thu Nov 22 12:11:20 2007

Scott Anguish <<email_removed>> wrote:

> [[myView animator] setFrame:newRect];


May I use this opportunity to ask a related question: how do I animate
scrolling in an NSScrollView?

It seems that NSClipView's scrollToPoint: only calls
translateOriginToPoint:, which I'm not sure how to animate.  I tried
scrolling manually by doing

  [[[myScrollView contentView] animator] setBoundsOrigin:newOrigin];

but this throws an exception

  [<NSClipView 0x1620e730> valueForUndefinedKey:]: this class is not key
  value coding-compliant for the key boundsOrigin.

Any ideas?


--
Stefan Haller
Ableton
http://www.ableton.com/

Related mailsAuthorDate
mlreplacing NSViewAnimation with CoreAnimation Christoph Vogelbus… Nov 21, 14:25
mlRe: replacing NSViewAnimation with CoreAnimation Nick Zitzmann Nov 21, 16:29
mlRe: replacing NSViewAnimation with CoreAnimation Scott Anguish Nov 21, 21:10
mlRe: replacing NSViewAnimation with CoreAnimation Christoph Vogelbus… Nov 21, 22:05
mlRe: replacing NSViewAnimation with CoreAnimation Scott Anguish Nov 21, 23:17
mlRe: replacing NSViewAnimation with CoreAnimation haller Nov 22, 12:11
mlRe: replacing NSViewAnimation with CoreAnimation Scott Anguish Nov 22, 22:28
mlRe: replacing NSViewAnimation with CoreAnimation haller Nov 23, 09:27
mlRe: replacing NSViewAnimation with CoreAnimation Scott Anguish Nov 23, 10:37
mlRe: replacing NSViewAnimation with CoreAnimation haller Nov 23, 17:05