XIB
As of MacOS 10.3 Apple moved away from the binary encoded nib files, and towards the xml encoded XIB files, for their interface definitions. As of 10.9 (Xcode 5) Apple changed the xib file format totally. That format is not supported by Gorm currently.
Xib file format
The xib file format is actually quite easy to understand, it is the responsability of the object encodeing and decoding, it to insure that it's attributes are read correctly.
Here is a commented example of a XIB file. For easy reading open it in a syntax highliting editor using XML highlighting.
To provide cross platform compatability, review the "XIB fields" section of the gnustep wiki article on the interface you intend to provide a codec for. Also be sure to read the apple article on KVC.
See Also
- Apple on KVC - Encoded objects must be KVC complient
- Apple on KVO -KVO explains how to decode KVC objects.
- XIB File Format Definition as understod by MonoObjc
Gorm compatibility to Xcode
As of version 1.2.24 Gorm is able to read xib and nib files from Xcode up to file version of Xcode 4 (to some extend). Gorm can save nib files, but this nib files currently cannot be read by Xcode 3 and above. This means for development of xibs/nibs you want to open using Gorm you need to use Xcode up to version 5 (Xcode 5 can save xibs in file version of Xcode 4). So you can use a Mac OS X version up 10.10. macOS 10.11 and newer won't run Xcode 5 anymore.
Gorm did not yet follow up the changes of gnustep-gui described below.
libs-gui/AppKit compatibility to Cocoa/macOS
As of 2020-01-24 the code base at the master branch of gnustep-gui is able to interpret xib files created by a concurrent version of Xcode (Xcode 11 at the time writing this). Even Cocoa bindings (using KVC/KVO) will work to some extend. These changes are not yet released.
Using .nib and .gorm files in parallel
You can use .nib and .gorm files in parallel to develop cross platform applications. GNUstep will load a .gorm file over a .nib file given the same name.