objective c - Plug-in architecture, access to code in application? -


for project doing, want mac application accept plug-ins. whole idea of adding bundles application extend it's functionality.

only came across small question, can't find answer to:

i need include json parser in application, functionality. possible plug-in bundle use same parser? or every plug-in uses json parser, need include parser themselves?

what best way separate bundles?

on os x there 2 types of loadable things, dylib , plugin. (these 2 terms have specialized technical meaning in context of mach-o, binary format os x uses.)

a loaded dylib can't refer libraries in executable, while loaded plugin can. side effect, dylib can loaded executable, plugin can loaded executable specify when make plugin.

so want make plugin. there template in xcode that. don't forget specify target executable in linker flag, can set somewhere in inspector.

for more, read code loading programming topics.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -