次のコードを使用して、私のカスタム ビューの動きをアニメーション化しようとしています (Apple 自身のドキュメントの Objective-C からの私の最良の翻訳)
var animDict = new NSMutableDictionary ();
animDict [NSViewAnimation.TargetKey] = this.View;
animDict [NSViewAnimation.StartFrameKey] = NSValue.FromRectangleF (this.View.Frame);
animDict [NSViewAnimation.EndFrameKey] = NSValue.FromRectangleF (new RectangleF (0, 150 * index, 400, 150));
var theAnim = new NSViewAnimation ();
theAnim.SetValuesForKeysWithDictionary (animDict);
theAnim.Duration = 2;
theAnim.StartAnimation ();
ただし、アプリを実行すると、次の実行時エラーが発生します: 2011-05-08 00:53:30.827 EpisodeNext[61715:613] [ setValue:forUndefinedKey:]: このクラスは、キー NSViewAnimationTargetKey のキー値コーディングに準拠していません。 .
私が間違っていることは何か分かりますか?ありがとう!