Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSAnimationContextMBS class.

NSAnimationContextMBS.allowsImplicitAnimation as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 21.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Determine if animations are enabled or not for animations that occur as a result of another property change.
Example
Var collectionView as NSCollectionViewMBS // your control

Var context As NSAnimationContextMBS = NSAnimationContextMBS.currentContext
context.beginGrouping
context.allowsImplicitAnimation = True
context.duration = 0.5

Var view As Variant = collectionView.animator
Var animator As NSCollectionViewMBS = view

// scroll to top
Var itemPaths() As NSIndexPathMBS
itemPaths.Append NSIndexPathMBS.indexPathForItem(0)

animator.scrollToItems(itemPaths, NSCollectionViewMBS.NSCollectionViewScrollPositionTop)

context.endGrouping

The default value is false.
(Read and Write property)

NSAnimationContextMBS.duration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The duration used when animating object properties that support animation.
Example
NSAnimationContextMBS.currentContext.duration = 0.5

Any animations that occur as a result of setting the values of animatable properties in the current context will run for this duration.

Available in Mac OS X v10.5 and later.
(Read and Write property)

NSAnimationContextMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Cocoa MBS MacFrameworks Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal reference to the NSAnimationContext object.

(Read and Write property)

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...