NSAnimationContextMBS properties

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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
dim collectionView as NSCollectionViewMBS // your control

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

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

// scroll to top
Dim 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.


💬 Ask a question or report a problem