• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A minimal InputManager bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: A minimal InputManager bundle
      • From: Kevin Yank <email@hidden>
  • Prev by Date: Re: Converting unicode strings to its values
  • Next by Date: Re: NSMenuItem Binding Problem
  • Previous by thread: Re: code for drawing an NSTextField to a panel window ...
  • Next by thread: Re: A minimal InputManager bundle
  • Index(es):
    • Date
    • Thread