Objective-C 和设计插件机制
我需要在 Objective C 中设计一个简单的插件系统。我想要一些关于如何实现这一点的建议。谢谢!
I need to design a simple plugin system in Objective C. I would like some advice about how to go about this. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
可可是你的女朋友: http ://www.cimgf.com/2008/09/17/cocoa-tutorial-adding-plugins-to-a-cocoa-application/
很棒的教程。
Cocoa is your girlfriend: http://www.cimgf.com/2008/09/17/cocoa-tutorial-adding-plugins-to-a-cocoa-application/
Awesome tutorial.
总有去往源头的地方。以下是插件的 ADC 参考
There is always going to the Source. Here is the ADC reference to Plug-ins
有很多种方法可以做到这一点,因此您可能需要详细说明您到底想要实现什么目标。作为起点,我建议您研究一下 Cocoa 委托,这通常是将新代码集成到现有框架中的好方法。
There are dozens of ways you could do this, so you might need to elaborate a little on what exactly you're trying to achieve. As a starting point, I'd recommend you look into Cocoa delegates which are usually a great way to integrate new code into an existing framework.