Solved

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

Posted on 2010-08-31
4
828 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

740 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