IluTov
IluTov

Reputation: 6852

Cocoa app plug-ins / sugars?

My app should be extendable using plug-ins or often called sugars. I would place them under appname.app/Contents/sugars/sugarname.appnamesugar

Those are bundles, compiled in a separate project. This would allow me to expand the functionality of the app without having to submit an update.

So, this is how much I know. How do I go on? How do I launch any methods and get results from them my main application. It would be good if I could give some kind of a class which they subclass and override it's methods to implement the functionality.

Those apps can do this:

http://panic.com/coda/

https://droplr.com/hello

I hope you can help me.

Upvotes: 0

Views: 82

Answers (1)

Amy Worrall
Amy Worrall

Reputation: 16337

Have a read of the Cocoa code loading guide for some information on how to use NSBundle to load plug-ins.

Upvotes: 1

Related Questions