Hi there,

I am attempting to write a minimal InputManager bundle, to be auto- loaded by all qualifying Cocoa applications.

I have it partly working, but have run into a stumbling block.

Here is the implementation of my bundle's primary class:

@implementation PluginIM

+ (void) load
{
  [[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(loadPlugin:) name:NSApplicationWillFinishLaunchingNotification
                                             object:nil];
  NSLog(@"Loaded PluginIM");
}

+ (void) loadPlugin:(NSNotification*)_notification
{
  NSLog(@"Application launch observed");
}

@end

My bundle compiles with no warnings or errors. Once I install it, I can see the "Loaded PluginIM" message appear in the system console whenever a Cocoa application is launched.

The problem is that I never see the "Application launch observed" message that should be generated in response to the NSApplicationWillFinishLaunchingNotification.

Any idea what I might be missing?

--
Kevin Yank
http://www.kevinyank.com/
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to