gpt4 book ai didi

objective-c - NSDocument 和键盘(如 keyDown)

转载 作者:行者123 更新时间:2023-12-03 17:27:09 24 4
gpt4 key购买 nike

我尝试阅读苹果文档,但我找不到任何地方如何将关键事件(空格或其他)捕获到 NSDocument 应用程序中。

如果我很了解initialFirstRepsodner,这是不可能做到的。

有什么想法吗?

谢谢大家!安德里亚

最佳答案

I've tried to read on apple documentation but I can't find anywhere how to capture key event (space or other) into an NSDocument application.

你想处理关键事件的目的是什么?您需要在某个地方实现 keyDown: ,但具体在哪里取决于您打算做什么。

关于objective-c - NSDocument 和键盘(如 keyDown),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1526512/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com