[Mono-osx] Animating Views Example
kjpou at pt.lu
Wed Nov 3 11:13:41 EDT 2010
I would like to submit the sample attached. It is the AnimatingViews
There were a couple of questions I had while doing this one.
1) Missing NSIntegralRect object. Is there a replacement for this or is it
something that is missing?
2) When trying to use NSValue.FromRectangleF it was giving me the following:
+[NSValue valueWithCGRect:]: unrecognized selector sent to class 0xa0506e18
This makes sense as it is part of UIKit and not AppKit as far as I know.
What would be the equivalent going forward?
3) The NSView Animator Proxy ( example: [[subview animator] setFrame:[self
integralRect:frame]]; ) is not available so used the CABasicAnimation in
another method to animate the subviews. Is this correct for now?
4) I searched high and low in the source code of MonoMac Core and MonoMac
but could not find a way to implement the CABasicAnimation with a PointF for
"position" instead of breaking them up into two different animations. I
guess this goes along with question #2.
If I have not implemented anything correctly please let me know.
View this message in context: http://mono.1490590.n4.nabble.com/Animating-Views-Example-tp3025535p3025535.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx