views:

21

answers:

1

hi. I am a newbie and i want to get a process or a key window as an object as i need to send message to it.In fact , i need to get them so that i can manipulate them with my input method kid(IMKit). the corresponding method is

-(BOOL)inputText:key:modifiers:client:

i want the key window/process receive the event as client. I am appreciated if anyone can help.

A: 

i want to get a process or a key window as an object as i need to send message to it. … the corresponding method is

-(BOOL)inputText:key:modifiers:client:

You have it the wrong way around. As noted in the documentation, that method is one that you implement, in your input method. Your input method does not send that message; it receives it. And all you do in that method is accept or veto the input.

I think you need to post a higher-level question about whatever it is you're trying to do, asking how to do it.

Peter Hosey