How to change input managers on Leopard

  • Hi all,

    I want to change the current input manager to another one by code.

    But,

      [NSInputManager cycleToNextInputLanguage:nil];
      [NSInputManager cycleToNextInputServerInLanguage:nil];

    doesn't work anymore on Leopard.
    It seems to have no effect.

    Does any one know how to do it effectively?

    And another question related to this topic.

    How can I know what is the current input manager?

    I tried,

      NSLog(@"%p", [NSInputManager currentInputManager]);
      NSLog(@"%@", [[NSInputManager currentInputManager] language]);
      NSLog(@"%@", [[NSInputManager currentInputManager]
    localizedInputManagerName]);

    I just got the same result always,

      0x145810
      nil
      nil

    even when the current input manager is for English or for Japanese.

    --
    Satoshi Nakagawa
  • Hi,

    On Leopard, you can use Text Input Sources Services that gives you far
    more control over the input sources.
    http://developer.apple.com/documentation/TextFonts/Reference/TextInputSourc
    esReference/Reference/reference.html


    Aki

    On 2007/11/07, at 3:46, Satoshi Nakagawa wrote:

    > Hi all,
    >
    > I want to change the current input manager to another one by code.
    >
    > But,
    >
    > [NSInputManager cycleToNextInputLanguage:nil];
    > [NSInputManager cycleToNextInputServerInLanguage:nil];
    >
    > doesn't work anymore on Leopard.
    > It seems to have no effect.
    >
    > Does any one know how to do it effectively?
    >
    >
    > And another question related to this topic.
    >
    > How can I know what is the current input manager?
    >
    > I tried,
    >
    > NSLog(@"%p", [NSInputManager currentInputManager]);
    > NSLog(@"%@", [[NSInputManager currentInputManager] language]);
    > NSLog(@"%@", [[NSInputManager currentInputManager]
    > localizedInputManagerName]);
    >
    > I just got the same result always,
    >
    > 0x145810
    > nil
    > nil
    >
    > even when the current input manager is for English or for Japanese.
    >
    > --
    > Satoshi Nakagawa
  • Oh Excellent! I had no idea that was added for Leopard- very
    exciting, thanks,

    ~Martin

    On Nov 7, 2007, at 10:37 AM, Aki Inoue wrote:

    > Hi,
    >
    > On Leopard, you can use Text Input Sources Services that gives you
    > far more control over the input sources.
    > http://developer.apple.com/documentation/TextFonts/Reference/
    > TextInputSourcesReference/Reference/reference.html
    >
    > Aki
    >
    > On 2007/11/07, at 3:46, Satoshi Nakagawa wrote:
    >
    >> Hi all,
    >>
    >> I want to change the current input manager to another one by code.
    >>
    >> But,
    >>
    >> [NSInputManager cycleToNextInputLanguage:nil];
    >> [NSInputManager cycleToNextInputServerInLanguage:nil];
    >>
    >> doesn't work anymore on Leopard.
    >> It seems to have no effect.
    >>
    >> Does any one know how to do it effectively?
    >>
    >>
    >> And another question related to this topic.
    >>
    >> How can I know what is the current input manager?
    >>
    >> I tried,
    >>
    >> NSLog(@"%p", [NSInputManager currentInputManager]);
    >> NSLog(@"%@", [[NSInputManager currentInputManager] language]);
    >> NSLog(@"%@", [[NSInputManager currentInputManager]
    >> localizedInputManagerName]);
    >>
    >> I just got the same result always,
    >>
    >> 0x145810
    >> nil
    >> nil
    >>
    >> even when the current input manager is for English or for Japanese.
    >>
    >> --
    >> Satoshi Nakagawa

  • Hi,

    This is what I want to know!
    It works very well.
    Thanks a lot.

    --
    Satoshi Nakagawa

    On 2007/11/08, at 3:37, Aki Inoue wrote:

    > Hi,
    >
    > On Leopard, you can use Text Input Sources Services that gives you
    > far more control over the input sources.
    > http://developer.apple.com/documentation/TextFonts/Reference/TextInputSourc
    esReference/Reference/reference.html

    >
    > Aki
    >
    > On 2007/11/07, at 3:46, Satoshi Nakagawa wrote:
    >
    >> Hi all,
    >>
    >> I want to change the current input manager to another one by code.
    >>
    >> But,
    >>
    >> [NSInputManager cycleToNextInputLanguage:nil];
    >> [NSInputManager cycleToNextInputServerInLanguage:nil];
    >>
    >> doesn't work anymore on Leopard.
    >> It seems to have no effect.
    >>
    >> Does any one know how to do it effectively?
    >>
    >>
    >> And another question related to this topic.
    >>
    >> How can I know what is the current input manager?
    >>
    >> I tried,
    >>
    >> NSLog(@"%p", [NSInputManager currentInputManager]);
    >> NSLog(@"%@", [[NSInputManager currentInputManager] language]);
    >> NSLog(@"%@", [[NSInputManager currentInputManager]
    >> localizedInputManagerName]);
    >>
    >> I just got the same result always,
    >>
    >> 0x145810
    >> nil
    >> nil
    >>
    >> even when the current input manager is for English or for Japanese.
    >>
    >> --
    >> Satoshi Nakagawa
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today