Skip navigation.
 
mlRe: creating an input manager
FROM : Mike Ferris
DATE : Tue Jan 28 18:04:40 2003

Just a little note on TextExtras...  While it uses the NSInputManager
mechanism to get itself loaded, it is not a real input manager.  Really
it just installs where input managers get installed so it will get
automatically loaded into all apps.

The main thing for bundles loaded by the NSInputManager mechanism is
simply to structure it properly.  It should look like this, installed:

    ~
        Library
            InputManagers
                MyIM
                    Info
                    MyIM.bundle
                        <standard bundle content>

You can look at the TextExtras "Info" file for details on what goes in
there.  Just be aware that the "Info" file is not the same as the
Info.plist of a bundle (MyIM.bundle has a standard Info.plist in it as
well).

Also, note that these bundles are ONLY loaded by Cocoa apps.  So you
might be able to fix your problem for Cocoa apps, but it will not
affect Carbon apps using this mechanism.

Mike


Begin forwarded message:

> From: Ralph Poellath <<email_removed>>
> Date: Tue Jan 21, 2003  1:21:15 PM US/Pacific
> To: <email_removed>
> Subject: creating an input manager
>
> I'm trying to come up with a workaround for the broken (on non-US
> systems) "Cycle Windows" keyboard shortcut. I have 4 lines of code
> which, when run from inside a cocoa application, fix the problem by
> adding a "Cycle Windows" menu item to the "Window" menu (with
> _cycleWindows: as target). This has been a known bug since 10.0, and
> I'm tired of modifying nib files.
>
> I know there are several methods of getting my code to be loaded and
> executed from inside other applications and I've been looking into
> NSInputManager, but can't get it to work. I've been staring at
> TextExtras and Apple's HexInputManager example for a couple of hours
> now, searched the web and my Cocoa books, but still..
>
> It's probably not too complicated, but maybe someone could give me a
> quick explanation on what's neccessary for my bundle to get recognized
> as input manager, and from where inside the bundle my code could be
> run.
>
> Thanks,
> -Ralph.
> _______________________________________________
> cocoa-dev mailing list | <email_removed>
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.

_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlPatching an application (long) Sven A. Schmidt Jan 16, 13:09
mlRe: Patching an application (long) Adam Atlas Jan 16, 17:20
mlRe: Patching an application (long) Sven A. Schmidt Jan 16, 18:10
mlRe: Patching an application (long) Buddy Kurz Jan 16, 19:22
mlRe: Patching an application (long) Nicholas Riley Jan 16, 20:29
mlRe: Patching an application (long) Chris Hanson Jan 16, 21:52
mlRe: Patching an application (long) Sven A. Schmidt Jan 17, 00:48
mlRe: Patching an application (long) Jeff Disher Jan 17, 01:48
mlRe: Patching an application (long) Sven A. Schmidt Jan 17, 11:43
mlcreating an input manager Ralph Poellath Jan 21, 22:21
mlRe: creating an input manager Mike Ferris Jan 28, 18:04