mootoh / safarihatenabookmark

Safari SIMBL Plugin that incorporates Hatena Bookmark, a Japanese Social Bookmark.

This URL has Read+Write access

safarihatenabookmark / PluginLoader.m
100644 30 lines (25 sloc) 0.592 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// PluginLoader.m
//
// Created by mootoh on 12/16/07.
// Copyright 2007 mootoh. All rights reserved.
//
 
#import "PluginLoader.h"
//#import "SHBController.h"
#import <RubyCocoa/RubyCocoa.h>
 
@implementation PluginLoader
 
+ (void) install
{
// MySamplePlugin* plugin = [MySamplePlugin sharedInstance];
        // ... do whatever
 
NSLog(@"PluginLoader:load");
//[[SHBController alloc] init];
 
  static int installed = 0;
  if (! installed) {
    if (RBBundleInit("shb_init.rb", self, nil))
      NSLog(@"PluginLoader.install: failed");
    else
      installed = 1;
  }
}
@end