Thursday, December 11th, 2008

nib2cib: Use Interface Builder to design your Ajax apps

Category: Apple

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:

  1. $ cd /path/to/Cappuccino/Tools/NibApp
  2. Copy or symlink the Cappuccino Frameworks to this directory
  3. $ nib2cib HelloWorld.xib
  4. 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
5 Comments

++++-
4.1 rating from 24 votes

5 Comments »

Comments feed TrackBack URI

Can anyone please explain what the hell a nib, cib and xib is?

I understand it has something to do with making coffee? :P

Comment by SchizoDuckie — December 11, 2008

@SchizoDuckie

NIBs and XIBs are the file formats used by Apple’s Interface Builder tool (NIB is binary or XML “plist”, XIB is the newer human readable XML version). CIB is the Cappuccino ( http://cappuccino.org/ ) equivalent.

nib2cib will let you use Interface Builder to build interfaces for Cappuccino applications.

http://developer.apple.com/tools/interfacebuilder.html
http://en.wikipedia.org/wiki/Interface_Builder

Comment by tlrobinson — December 11, 2008

Very impressive. I’ve never been one for visual interface builders, but my understanding is that Apple’s is extremely good. I’d love to see a demo of something built in Interface Builder and then converted to work in the browser.

Comment by genericallyloud — December 11, 2008

>> Can anyone please explain what the hell a nib, cib and xib is? I understand it has something to do with making coffee? :P
.
Haha. I also came in here to ask what the hell a nib was.
.
Thanks for the explanation, tlrobinson. I’m wondering why that wasn’t in the article.

Comment by Nosredna — December 11, 2008

Wha???

Comment by otatop — December 11, 2008

Leave a comment

You must be logged in to post a comment.