MonoTouch Bindings for Sparrow 1.3
Objective-C C# C
Latest commit 2845a6e Mar 29, 2012 Marcus Wilhelm SPImage implemented, tested and documented
Permalink
Failed to load latest commit information.
Examples/HelloWorld
Sparrow
UnitTests SPImage implemented, tested and documented Mar 29, 2012
.gitignore
LICENSE.md documentation skeleton for all types created; license updated. Mar 23, 2012
Makefile README and gitignore updated Mar 28, 2012
README.md Update README.md Mar 28, 2012
sparrow-monotouch.sln SPTextField implemented, tested and documented Mar 27, 2012

README.md

MonoTouch Bindings for Sparrow 1.3

Related Links

Status Quo

Currently only a few classes are bound to MonoTouch. So far the bindings seems to work with one exception: You can't derrive from a Sparrow class if you build everything with MonoDevelop.

The reason for this: The /e argument of btouch (see bug #3234). That's why mtouch does not generate subclassable types. To bad that MonoDevelop does not allow to change this default behavior (for Binding Projects). As a workaround a MakeFile now builds Sparrow.dll.

If you need to build it yourself (as long as I do not provide Sparrow.dll as a download) open Terminal, navigate to sparrow-monotouch/ and run the following command:

make all

That's it. To clean up temporary files you might run as well:

make clean

You have successfully build Sparrow.dll. You will find the binding library inside sparrow-monotouch/Sparrow/bin/.

How to build libSparrow.a as an universial static library

$ git clone https://github.com/PrimaryFeather/Sparrow-Framework.git

Open Sparrow project with Xcode.

Change the build configuration to release.

Compile Sparrow for device and simulator.

Navigate to Sparrow/Products inside the Project navigator.

Right click on libSparrow.a and then choose Show in Finder.

Navigate two directories up.

Open Terminal and drag the path from the Finder into it:

$ cd ~/Library/Developer/Xcode/DerivedData/Sparrow.../Build/Products

Now use lipo to create a fat universial library:

$ lipo -output 'libSparrow.a' -create 'Release-iphoneos/libSparrow.a' -arch i386 'Release-iphonesimulator/libSparrow.a'

Now you have a universial static library.