开发者

How do I create a Cocoa (Obj-C) Dynamic Library for OS X?

开发者 https://www.devze.com 2023-01-13 17:37 出处:网络
So basically I want to create a Dynamic Library in OS X that is built utilizing Cocoa (In Obj-C, not C or C++).My ques开发者_开发问答tion is - how do I do this?

So basically I want to create a Dynamic Library in OS X that is built utilizing Cocoa (In Obj-C, not C or C++). My ques开发者_开发问答tion is - how do I do this?

Ultimately I want the library to be loaded by another application (which I know how to do). I just don't know how to create a module utilizing Objective-C.

Thanks!


I suggest creating your own framework instead of a library. Guide 1 Guide 2

If you're bent on making a Dynamic Lib then check this Guide 3 out. I recommend against dynamic libs because I believe they're banned/frowned upon by Apple when approving iPhone apps.

Frameworks will give you the same functionality, plus a ton more options for resources, headerfiles, etc. Plus, you'll be following Apple's design patterns which means your code will run better.

0

精彩评论

暂无评论...
验证码 换一张
取 消