nib2objc is a free and command line based utility which converts NIB files (or XIB ones) into Objective-C code, including all the properties of each instance, the documented constructor calls, and also the view hierarchy.
nib2objc uses the output of the ibtool utility bundled with the Xcode tools.
Installation and usage: You can just open the included Xcode project and choose Build from the Build menu. This will build the nib2objc application in the "/build/Debug" folder inside the tool's source directory. Afterwards you can open a Terminal window, go to nib2objc's /build/Debug folder and run the following command from the command line:
nib2objc yourfile.xib > code.m
Requirements:
· Apple Xcode
Limitations:
· For the moment this utility only works for UIKit views (iPhone), but it should be easy to extend to those of the AppKit too.
· It cannot output the values of UIImage, NSLocale or NSTimeZone properties, because ibtool does not support them.
· It does not distinguishes default values for properties, and as such, it outputs all the information it can find about a particular instance.
What's New in This Release: [ read full changelog ]
· Added a Perl script by Rudi Farkas to perform batch transformations of nib files in folders