New operator — creates an instance of the delegate implementation class.
新运算符——创建委托实现类的实例。
Additionally, you can name your application delegate class whatever you want.
另外,你也可以任意命名你的应用程序委托类。
These all accept a delegate, usually in the form of an anonymous method.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
These classes delegate responsibility for base class behavior to an instance of the base class.
这些类将基础类行为的责任委托给基础类的一个实例。
Note that the handler function must have the signature defined by the delegate.
注意该处理器函数必须具备由委托定义的签名。
The StoreManagerDelegate class is the application's business delegate.
StoreManagerDelegate类是这个程序的业务代表。
Then, you have to call BeginInvoke on this delegate object.
然后,你必须在这个委托对象上调用BeginInvoke方法。
Singleton — returns reference to the single instance of the delegate object.
Singleton——返回对委托对象单个实例的引用。
You can see the tableView delegate and data source set below in the viewDidLoad method.
可以看到在viewDidLoad方法中设置了tableView委托和数据源。
If we can find a delegate, we invoke it.
如果我们能够找到一个委托,我们调用它。
Babbitt was an official delegate.
巴比特是一名正式代表。
All we can do now is cut, and pray, said one OPEC delegate.
一位欧佩克代表说,现在我们能做的就只是减产,然后祈祷。
He had the honour of being a delegate to that international conference.
他有幸成为出席那次国际会议的代表。
Another important quality is the ability to delegate.
另一个重要的特质就是授权的能力。
That there is only one delegate associated with the event.
只有一名代表与事件相关联。
When you delegate, you do lose control of how a task is done.
当你授权委任的时候你的确无法控制任务会是如何完成的。
These class loaders can delegate not only to their parent, but also to their peers.
这些类装入器不仅可以委托给它们的双亲,还能委托给它们的对等体。
你害怕委托别人。
Now let's look at an example of defining and using a delegate.
现在我们来看一个定义和使用委托的例子。
A delegate is an object that contains a reference to a method.
委托是包含有对一个方法的引用的对象。
Remember, though, that you can delegate the authority, but you cannot delegate the responsibility.
记住,虽然你可以授权,但是你不可以推卸责任。
If you can permanently delegate one of your regular tasks to someone else, do it.
如果你能永久地委派一项你的常规任务给别人,那就这样做吧。
Create these methods inside the class delegate.
在delegate类中创建这些方法。
Figure out what you are very good at doing — delegate or outsource the rest.
确定你最善于做的是什么——将其它事委派或外包给别人做。
Define the class delegate of the ListElement view.
定义ListElement视图的delegate类。
And remember that your class can have more than one delegate.
请记住,您的类可以拥有多个delegate。
The delegate of the application object.
应用程序的代理对象。
A boss must know how to delegate work.
老板应懂得如何分派工作。
A boss must know how to delegate work.
老板应懂得如何分派工作。
应用推荐