Solved

How do I create a Cocoa Dynamic Library for OS X?

Posted on 2010-08-31
4
825 Views
Last Modified: 2012-05-10
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 question 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!
0
Comment
Question by:Geesu
  • 2
4 Comments
 
LVL 33

Accepted Solution

by:
pgnatyuk earned 500 total points
ID: 33570469
Probably, the easiest way is to create new project in Xcode and choose the framework template.

It's all explained here:
Creating a Framework
http://developer.apple.com/mac/library/documentation/MacOSX/Conceptual/BPFrameworks/Tasks/CreatingFrameworks.html

Everything about the dynamic libraries: http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/DynamicLibraries/000-Introduction/Introduction.html

0
 

Author Comment

by:Geesu
ID: 33570804
My end result is to inject the binary into another running process, I don't believe I can do this w/a framework
0
 
LVL 33

Expert Comment

by:pgnatyuk
ID: 33570896
For sure I cannot help you with it.
You wanted to know how to create your own dynamic library - you got the answer - Apple explains it perfect.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now