如何将 NSDragOperation 转换为 IBAction
我有一个 NSDragOperation 当前驻留在与 AppDelegate 不同的实现中;它获取拖动文件的文件名并填充 AppDelegate 上的文本字段。在该文本字段中,用户可以按“确定”来尝试处理从拖动操作中抓取的文件。如何跳过用户交互并自动尝试处理文件?
我尝试过这样的事情:
[AppDelegate button:(id)sender];
结果是:
(Error: Use of undeclared identifier 'sender')
我认为我走在正确的轨道上,尽管我似乎在这些类型操作上遇到了麻烦,因为我想自动提交 IBAction,所以知道如何去做会很高兴。谢谢...
I have a NSDragOperation that currently resides in a different implementation as AppDelegate; it grabs the file name of a dragged file and populates a text field on AppDelegate. From that text field the user can press 'ok' to try and process the file grabbed from the drag operation. How do I skip the user interaction and automatically try and process the file?
I tried such things as:
[AppDelegate button:(id)sender];
The result is:
(Error: Use of undeclared identifier 'sender')
I think I'm on the right track, although I seem to have trouble with these type operations were I want to auto submit an IBAction, so it would be nice to know how to do it. Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论