Thursday, December 11th, 2008
Tom Robinson has created an interesting new tool called nib2cib that could lead to you being able to use Interface Builder to create Ajax frontends.
nib2cib is a command line tool designed for converting Cocoa’s nibs and xibs to Cappuccino’s cibs. It is still very much a work in progress, but is a good foundation for starting to fully support nib-style development on Cappuccino.
nib2cib converts nibs and xib that you supply to it on the command line to cibs. Given the new nature of this program, a good place to try it out is with NibApp:
- $ cd /path/to/Cappuccino/Tools/NibApp
- Copy or symlink the Cappuccino Frameworks to this directory
- $ nib2cib HelloWorld.xib
- Open /path/to/Cappuccino/Tools/NibApp/index.html in your favorite browser.
The basic task behind nib2cib is to convert NS-classes to CP-classes. When you give it a nib or xib file, nib2cib open the file, unarchives the actual NS-objects, converts them, and then archives the CP-equivalents.
Posted by Dion Almaer at 12:38 am