Platforms to show: All Mac Windows Linux Cross-Platform

Back to CATransactionMBS class.

CATransactionMBS.animationDuration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the animation duration used by all animations within this transaction group.

CATransactionMBS.available as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns true if transaction class is available.

Returns true on Mac and false on Linux/Windows.

CATransactionMBS.begin

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Begin a new transaction for the current thread.

The transaction is nested within the thread's current transaction, if there is one.
Available in OS X v10.5 and later.

CATransactionMBS.commit

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Commit all changes made during the current transaction.

Raises an exception if no current transaction exists.
Available in OS X v10.5 and later.

CATransactionMBS.flush

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Flushes any extant implicit transaction.

Delays the commit until any nested explicit transactions have completed.

Flush is typically called automatically at the end of the current runloop, regardless of the runloop mode. If your application does not have a runloop, you must call this method explicitly.

However, you should attempt to avoid calling flush explicitly. By allowing flush to execute during the runloop your application will achieve better performance, atomic screen updates will be preserved, and transactions and animations that work from transaction to transaction will continue to function.

Available in OS X v10.5 and later.

CATransactionMBS.kCATransactionAnimationDuration as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for values of a transaction.

Duration, in seconds, for animations triggered within the transaction group. The value for this key must be a number.
Available in OS X v10.5 and later.

CATransactionMBS.kCATransactionDisableActions as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the keys for values of a transaction.

If true, implicit actions for property changes made within the transaction group are suppressed. The value for this key must be a boolean.
Available in OS X v10.5 and later.

Some examples using this method:

CATransactionMBS.setAnimationDuration(value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the animation duration used by all animations within this transaction group.

Available in OS X v10.6 and later.

CATransactionMBS.setValue(value as Variant, key as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Sets the arbitrary keyed-data for the specified key.

value: The value for the key identified by key.
key: The name of one of the receiver's properties.

Nested transactions have nested data scope; setting a key always sets it in the innermost scope.
Available in OS X v10.5 and later.

CATransactionMBS.valueForKey(key as string) as Variant

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreAnimation MBS MacCG Plugin 13.1 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the arbitrary keyed-data specified by the given key.

key: The name of one of the receiver's properties.

Returns the value for the data specified by the key.
Nested transactions have nested data scope. Requesting a value for a key first searches the innermost scope, then the enclosing transactions.
Available in OS X v10.5 and later.

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


The biggest plugin in space...