Xcode 源代码编辑器扩展可以提示用户输入吗? [英] Can an Xcode Source Editor Extension prompt the user for input?

查看:47
本文介绍了Xcode 源代码编辑器扩展可以提示用户输入吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单的问题.我编写了一个 Xcode 源代码编辑器扩展,作为我命令的一部分,我必须提示用户输入以了解他们想要哪个选项.

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.

我希望有一种简单的方法来显示警报,但我猜不是这样,我必须从扩展程序(通过 URL 方案)启动应用程序,然后使用进程间通信.

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?

推荐答案

没有办法提示用户.我想要类似的东西,我想执行菜单命令但不能.

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

这篇关于Xcode 源代码编辑器扩展可以提示用户输入吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆