Make GrowlPlugin support -init, particularly because GrowlPluginController uses it to instantiate plug-ins.
authorPeter Hosey <hg@boredzo.org>
Wed Oct 07 03:20:25 2009 -0700 (2009-10-07)
changeset 44915e2b01d86037
parent 4490 4e571142d4ce
child 4492 8fe45fd61f7d
Make GrowlPlugin support -init, particularly because GrowlPluginController uses it to instantiate plug-ins.
Plugins/GrowlPlugin.m
     1.1 --- a/Plugins/GrowlPlugin.m	Wed Oct 07 03:20:21 2009 -0700
     1.2 +++ b/Plugins/GrowlPlugin.m	Wed Oct 07 03:20:25 2009 -0700
     1.3 @@ -18,7 +18,7 @@
     1.4  
     1.5  //designated initialiser.
     1.6  - (id) initWithName:(NSString *)name author:(NSString *)author version:(NSString *)version pathname:(NSString *)pathname {
     1.7 -	if ((self = [self init])) {
     1.8 +	if ((self = [super init])) {
     1.9  		pluginName     = [name     copy];
    1.10  		pluginAuthor   = [author   copy];
    1.11  		pluginVersion  = [version  copy];
    1.12 @@ -43,6 +43,10 @@
    1.13  	return self;
    1.14  }
    1.15  
    1.16 +- (id) init {
    1.17 +	return [self initWithBundle:[NSBundle bundleForClass:[self class]]];
    1.18 +}
    1.19 +
    1.20  - (void) dealloc {
    1.21  	[pluginName release];
    1.22  	[pluginAuthor release];