Created
November 13, 2009 16:51
-
-
Save jtdreisb/233970 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (void) load | |
{ | |
PluginLoader * plugin = [PluginLoader sharedInstance]; | |
//Do additional setup such as add menu items or windows/GUI | |
//Swizzle the methods of any class we are customizing | |
[WebSearchField swizzleMethods]; | |
} | |
+ (PluginLoader *) sharedInstance | |
{ | |
static PluginLoader * plugin = nil; | |
if (!plugin) | |
{ | |
plugin = [[PluginLoader alloc] init]; | |
} | |
return plugin; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment