public static void SetFrames(NSViewAnimation aAnimation, Id aTarget, NSRect aStart, NSRect aEnd) { NSDictionary animDict = NSDictionary.DictionaryWithObjectsAndKeys(aTarget, NSViewAnimation.NSViewAnimationTargetKey, NSValue.ValueWithRect(aStart), NSViewAnimation.NSViewAnimationStartFrameKey, NSValue.ValueWithRect(aEnd), NSViewAnimation.NSViewAnimationEndFrameKey, null); aAnimation.ViewAnimations = NSArray.ArrayWithObject(animDict); }