Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要比在文本字段中写入整个类名更好的东西。也许是系统浏览器的简化视图。
我用“对话框”和“窗口”搜索了类名,但找不到。
不久前,我为 OmniBrowser 实现了一个可插入的完成对话框。这是为最终用户描述它的博客文章:
OmniBrowser 完成对话框
模型在 中实现,OBCompletionRequest形态视图在OBCompletionDialog. 虽然代码目前依赖于 OmniBrowser 基础架构,但提取起来应该相对容易。没有困难的依赖关系。
OBCompletionRequest
OBCompletionDialog
该模型是完全可插拔的,因此该对话框适用于任何实体集合。此外,对话框可以很好地扩展到巨大的列表:显示和过滤所有系统类或所有系统选择器没什么大不了的。