root/lang/objective-c/SafariHatenaBookmark/PluginLoader.m

Revision 3246, 0.6 kB (checked in by mootoh, 13 months ago)

re-writing with RubyCocoa?.

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