Class: ModraUp::AppObserver
- Inherits:
-
Object
- Object
- ModraUp::AppObserver
Overview
Observer for applications. Registered with ModraUp.add_observer. Must implement expectsStartupModelNotifications and return true to receive the onNewModel notification at startup.
Instance Method Summary # collapse
-
#expectsStartupModelNotifications ⇒ Boolean
Returns whether to receive notifications for the startup model via onNewModel / onOpenModel. The default base class returns false.
-
#onNewModel(model) ⇒ nil
Called after a new document is created.
-
#onOpenModel(model) ⇒ nil
Called after opening a document.
-
#onActivateModel(model) ⇒ nil
Called when the current model is activated. Note that no dispatching occurs (single document, no Mac multi-document switching).
-
#onQuit ⇒ nil
Called before the application exits.
-
#onUnloadExtension(extension_name) ⇒ nil
Called when the extension is disabled.
-
#onExtensionsLoaded ⇒ nil
Called after the plugin directory has been loaded.
Instance Method Details
observer.expectsStartupModelNotifications ⇒ Boolean
Returns whether to receive notifications for the startup model via onNewModel / onOpenModel. The default base class returns false.
observer.onNewModel(model) ⇒ nil
Called after a new document is created.
observer.onOpenModel(model) ⇒ nil
Called after opening a document.
observer.onActivateModel(model) ⇒ nil
Called when the current model is activated. Note that no dispatching occurs (single document, no Mac multi-document switching).
observer.onQuit ⇒ nil
Called before the application exits.
observer.onUnloadExtension(extension_name) ⇒ nil
Called when the extension is disabled.
observer.onExtensionsLoaded ⇒ nil
Called after the plugin directory has been loaded.