Class: Rucola::PluginRunner

Inherits:
OSX::NSObject show all
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

Methods inherited from OSX::NSObject

_inherited_before_rucola, defined_ib_outlets, during_init, expects_alloc_init_returns, ib_outlets, inherited

Constructor Details

#initializePluginRunner

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