The previous post I have show you an example on how to create a simple windows using the objective-c binding.
Still it was working it was not so flexible. If you fetch the latest commit from github you will have enhancement quoted below:
- Direct access to ObjC class
- Unary method pragma for method override
- Super send
- Transparent String and Array
- Bug fix
Note the the binding can run on OSX and use gnustep for other platform. See my previous post for installation details
Recently I have done some work on the gst-objective-c-binding.
Now most of the basic feature is here. Of course a lot of polishing still need to be done.
The binding now support sending message from objective-c to smalltalk and from smalltalk to objective-c.
You can also sublcass some objective-c class like NSView.
In this post I will show you how to get the bridge working and create you first Cocoa app.
(If you have a better name idea feel free to give me suggestions.)
You can fetch the source from github:
$ git clone git://github.com/mathk/gst-objc.git