nswindowcontroller +程序执行 [英] nswindowcontroller + program execution

查看:70
本文介绍了nswindowcontroller +程序执行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:
可可:我已经收到了用户的输入-现在呢?

我试图在程序执行期间使用nswindows控制器来处理用户输入.我能够在nstextfield中获得用户输入,但是当我单击ok或cancel按钮时,它们各自的IBAction方法正在执行,并且控件未返回到应该在nswindowcontroller获取后执行的上一个执行位置.用户输入.请为我建议一种克服此问题的方法.

I am trying to use nswindows controller to handle user inputs during the program execution. I am able to get the user input in a nstextfield but when i am clicking on the ok or cancel button, their respective IBAction methods are getting executed and the control is not getting returned to the previous execution place that should execute after the nswindowcontroller gets the user input. Please suggest me a way to get over this.

谢谢

推荐答案

上一个执行位置"是什么意思?可可应用程序是事件驱动的,您几乎总是在响应用户输入.

What do you mean by "the previous execution place"? Cocoa apps are event-driven, you are pretty much always just responding to user input.

您的应用程序在做什么?

What is your app doing?

这篇关于nswindowcontroller +程序执行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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