获取进程(例如 TextEdit)作为可可中的对象
我是一个新手,我想获取一个进程或一个关键窗口作为对象,因为我需要向它发送消息。事实上,我需要获取它们,以便我可以使用我的输入法kid(IMKit)来操作它们。 相应的方法是:
-(BOOL)inputText:key:modifiers:client:
我希望关键窗口/进程作为客户端接收事件。 如果有人可以提供帮助,我将不胜感激。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你搞错了。如 文档,该方法是您在输入法中实现的方法。您的输入法不会发送该消息;它收到它。您在该方法中所做的就是接受或否决输入。
我认为你需要发布一个更高级别的问题,无论你想要做什么,询问如何去做。
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.