Can an Xcode Source Editor Extension prompt the user for input?

主宰稳场 提交于 2019-12-11 15:52:19

问题


Simple question. I've written an Xcode Source Editor Extension and as part of one of my commands, I have to prompt the user for input to know which option they want.

I'm hoping there's a simple way to present an alert, but I'm guessing that's not the case and I'll have to instead launch the app from the extension (via URL schemes), then use inter-process communications.

Like I said, hoping I'm wrong. So am I?


回答1:


There is no way to prompt the user. I wanted something similar where I wanted to execute a menu command but couldn't.



来源:https://stackoverflow.com/questions/49245736/can-an-xcode-source-editor-extension-prompt-the-user-for-input

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!