Solved

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

Posted on 2010-08-31
4
824 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

763 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

15 Experts available now in Live!

Get 1:1 Help Now