After setAffineTransform, layer display not updating before user input

82 views
Skip to first unread message

N. Peter

unread,
Nov 15, 2013, 10:06:53 AM11/15/13
to objec...@googlegroups.com
I'm using cappuccino 0.9.7.

I have the following setup.

// inside init of a CPView
rootLayer = [CALayer layer];
[self setWantsLayer:YES];
[self setLayer:rootLayer];

Later I add some sublayers to rootLayer.

In a different view there is a popup button that allows the user to modify the zoom factor of that rootLayer. On change, I call setAffineTransform on the rootLayer. The result is fine. But the problem is that the layer updates only after I hit a key or move the mouse after having chosen the zoom factor. Calling setNeedsDisplay on the rootLayer and its view doesn't help. Do you have any idea what's wrong?

daboe01

unread,
Nov 17, 2013, 11:56:34 PM11/17/13
to objec...@googlegroups.com

Mathieu Monney

unread,
Nov 18, 2013, 9:32:19 AM11/18/13
to objec...@googlegroups.com, kno...@gmail.com
Naoki,

I have just sent a pull request to fix this bug: https://github.com/cappuccino/cappuccino/pull/2018

Mathieu

--
You received this message because you are subscribed to the Google Groups "Cappuccino & Objective-J" group.
To unsubscribe from this group and stop receiving emails from it, send an email to objectivej+...@googlegroups.com.
To post to this group, send email to objec...@googlegroups.com.
Visit this group at http://groups.google.com/group/objectivej.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages