Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I develop my own objective-C Framework for Cocoa Touch Applications?

Is it possible to create an own obj-C Cocoa Touch framework which can be used by other developers? And furthermore can you protect this framework?

like image 693
jantimon Avatar asked Aug 19 '09 14:08

jantimon


People also ask

Is Cocoa Touch a framework?

Cocoa Touch is a user interface framework provided by Apple for building software applications for products like iPhone, iPad and iPod Touch. It is primarily written in Objective C language and is based on Mac OS X. Cocoa Touch was developed based on model view controller software architecture.

What is an Objective-C framework?

It is a bundle (Directory structure) that contains shared libraries as well as sub directories of headers and other resources. However Frameworks can include the following, Shared Library. Header Files describing the API. Documentation.

What is the difference between Cocoa and Cocoa Touch?

Cocoa, which includes the Foundation and AppKit frameworks, is used for developing applications that run on OS X. Cocoa Touch, which includes Foundation and UIKit frameworks, is used for developing applications that run on iOS.


1 Answers

I've created templates for Xcode 4 that allow you to build universal iOS frameworks (which work in both device and simulator).

Once the templates are installed, you simply select "Static iOS Framework" when creating a new project and it does the rest. It also works with unit tests.

https://github.com/kstenerud/iOS-Universal-Framework

like image 52
Karl Avatar answered Sep 28 '22 10:09

Karl