MainWindow ‹ Chocolat API

MainWindow.current()

Class method that returns the current window.

Returns MainWindow – the current MainWindow.

.tabs()

Returns and array of tabs in the main window.

Returns Array – tabs.

.currentTab()

Get the current, active tab from the main window.

Returns Tab – the active tab in the main window.

.sendMessage(selector, arguments)

Send an objective-c message to the MainWindow.

  • selector String – the message selector to send.
  • arguments Array – the arguments to send along with the message.

.storage()

Access the storage object of the MainWindow (see Storage class).

Returns Storage – the storage.