Package icyllis.modernui.core.awt

# Class MacOSX

java.lang.Object
icyllis.modernui.core.awt.MacOSX

public class MacOSX extends Object
Utility class to provide MacOSX-only stuff.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `caFlush()`
  Flushes any extant implicit transaction.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### caFlush

    public static void caFlush()
    Flushes any extant implicit transaction. Equivalent of `[CATransaction flush];` in Objective-C.

    From Apple's developer documentation:

    > 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.