[英]How do I add a delegate to a document based application
I cannot figure out how to add the delegate NSTextViewDelegate
to my document based application. 我无法弄清楚如何将委托
NSTextViewDelegate
添加到基于文档的应用程序中。 The @implementation
is : @implementation
是:
@interface MPODocument : NSPersistentDocument
And I cannot seem to add NSTextViewDelegate
. 而且我似乎无法添加
NSTextViewDelegate
。 How can I do it? 我该怎么做?
这很容易!
@interface MPODocument : NSPersistentDocument<NSTextViewDelegate>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.