Class: Rucola::PluginRunner
- Inherits:
-
OSX::NSObject
- Object
- OSX::NSObject
- Rucola::PluginRunner
- Defined in:
- lib/rucola/plugin.rb
Overview
This class is used to be able to run hooks when the app has started.
Instance Method Summary collapse
- #after_launch(notification) ⇒ Object
-
#initialize ⇒ PluginRunner
constructor
A new instance of PluginRunner.
Methods inherited from OSX::NSObject
_inherited_before_rucola, defined_ib_outlets, during_init, expects_alloc_init_returns, ib_outlets, inherited
Constructor Details
#initialize ⇒ PluginRunner
Returns a new instance of PluginRunner.
46 47 48 49 |
# File 'lib/rucola/plugin.rb', line 46 def initialize center = OSX::NSNotificationCenter.defaultCenter center.addObserver_selector_name_object(self, :after_launch, OSX::NSApplicationDidFinishLaunchingNotification, nil) end |
Instance Method Details
#after_launch(notification) ⇒ Object
51 52 53 |
# File 'lib/rucola/plugin.rb', line 51 def after_launch(notification) Rucola::Plugin.after_launch end |