A minimal InputManager bundle
A minimal InputManager bundle
- Subject: A minimal InputManager bundle
- From: Kevin Yank <email@hidden>
- Date: Wed, 11 Mar 2009 22:20:48 +1100
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@hidden)
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:
This email sent to email@hidden