实现两个协议的委托

时间:2017-07-06 22:32:33

标签: macos lazarus freepascal

我迷失了创建一个在FreePascal / Lazarus中实现两个协议的类的语法。

我不想定义一个新协议(objcprotocol?) - 我“只是”想要一个实现两个协议的类,这里是NSURLConnectionDelegate和NSURLConnectionDataDelegate,所以我可以使用代理使用Mac API调用。

我有一些东西

TmyDelegate = objcclass
public
  procedure connectionDidFinishLoading(UC: NSURLConnection); message 'connectionDidFinishLoading:';
  // + all other methods... And can I possibly inherit from a class that implements some of the routines, so I do not have to implement all?)
end;

但是,我怀疑我需要定义/标记支持哪些协议的类?

0 个答案:

没有答案
相关问题