Make GrowlDisplayPlugin implement initWithBundle:, not init, to match how GrowlWebKitDisplayPlugin calls up to its superclass.
authorPeter Hosey <hg@boredzo.org>
Mon May 24 02:10:55 2010 -0700 (2010-05-24)
changeset 4619ce8b07d8de26
parent 4618 04cd118c896e
child 4620 cd1d446f791b
Make GrowlDisplayPlugin implement initWithBundle:, not init, to match how GrowlWebKitDisplayPlugin calls up to its superclass.
Plugins/Displays/GrowlDisplayPlugin.m
     1.1 --- a/Plugins/Displays/GrowlDisplayPlugin.m	Sun May 23 02:15:31 2010 -0700
     1.2 +++ b/Plugins/Displays/GrowlDisplayPlugin.m	Mon May 24 02:10:55 2010 -0700
     1.3 @@ -19,15 +19,14 @@
     1.4  
     1.5  @implementation GrowlDisplayPlugin
     1.6  
     1.7 -- (id) init {
     1.8 -	if ((self = [super init])) {
     1.9 +- (id) initWithBundle:(NSBundle *)bundle {
    1.10 +	if ((self = [super initWithBundle:bundle])) {
    1.11  		/*determine whether this display should enqueue notifications when a
    1.12  		 *	notification is already being displayed.
    1.13  		 */
    1.14  		BOOL queuesNotifications = NO;
    1.15  		windowControllerClass    = nil;
    1.16  
    1.17 -		NSBundle *bundle = [NSBundle bundleForClass:[self class]];
    1.18  		NSString *queuesNotificationsObject = [bundle objectForInfoDictionaryKey:GrowlDisplayPluginInfoKeyUsesQueue];
    1.19  		if (queuesNotificationsObject) {
    1.20  			NSAssert4([queuesNotificationsObject respondsToSelector:@selector(boolValue)],