Now, add more code to the controller.
现在,您可以向控制器中添加更多的代码。
First, look at the controller in Listing 1.
首先,看清单1中的控制器。
Let's go back and finish the controller.
让我们回过头来完成控制器。
Respond to signals sent from the controller.
对控制器发出的信号做出响应。
We just need to add one line to the controller.
我们只需要给控制器增加一行。
You'll see the controller side of this shortly.
稍后您将看到控制器端的情况。
To make this form work, I start with the controller.
为了让此表单正常工作,我从控制器开始处理。
Next, you begin work on the controller functionality.
接下来,开始使用控制器功能。
Send all actions from the view to the controller.
将视图中的所有操作发送给控制器。
The central piece of the widget is the controller.
小组件的核心内容是控制器。
The Action is, however, still part of the controller.
然而,Action仍然是控制器层的一部分。
Both the view and the controller depend on the model.
视图和控制器对象都依赖于模型。
The view does not have direct contact with the controller.
视图并不直接与控制器交互。
The goal of the controller is to prepare the model for the view.
控制器的目的是为视图准备模型对象。
Creating the controller method to make the remote JSON request.
创建用于发出远程JSON请求的控制器方法。
I completely isolate the code under test to the controller layer.
要测试的代码被完全限制在控制层。
The most common mistake I see is business process in the controller.
我所见到的一个最普遍的错误就是将业务处理放置在了控制器当中。
Next, the application instantiates the controller object as a global.
下一步,应用程序将控制器对象作为全局变量进行实例化。
Remember the job of the controller is to prepare the model for the view..
记住,控制器的职责是为视图准备模型对象。
Next, we'll bridge the model and view with the controller, or EditPart.
接下来,我们将用控制器或EditPart在模型与视图之间架起桥梁。
For example, you may want to set your title and headline in the controller.
例如,您可能希望在控制器中设置标题和标题栏。
The class will serve as the controller for the "home page" of your application.
这个类充当应用程序“主页”的控制器。
The sample client application constitutes the controller layer of the solution.
示例客户机应用程序构成解决方案的控制层。
Depending on the game, the controller becomes a warrior's sword or a golf club.
你手中的手柄是战士手中之剑还是高尔夫球杆,那就要看你在玩什么游戏了。
When an event happens in the view, the Cocoa framework will call the controller.
当视图中发生一个事件时,Cocoa框架将会调用这个控制器。
Attach the service classes to the controller class with the web_service option.
用web_service选项将服务类与控制器类绑定在一起。
respond_with is shorthand for the logic to decide how the controller should proceed.
respond_with是逻辑快捷方式,用于决定控制器应如何继续处理。
With the controller and services configured, this simple application is complete.
控制器和服务配置好后,这个简单的应用程序就完成了。
With the direct dispatching mode, method invocations are made directly to the controller.
使用直接调度模式,直接对控制器进行方法调用。
The hello_message action in the controller class is available to clients for method invocation.
控制器类中的 hello_message 操作可用于客户机进行方法调用。
应用推荐