[Pythonmac-SIG] OT: getting at the XML in nib files

Bob Savage bobsavage@mac.com
Wed, 16 Jan 2002 19:41:40 -0600


on 1/16/02 6:41 PM, Chris Lee wrote:
> 
> does anyone know how to extract the xml text file from a nib file for viewing
> (rather than using)?
> 

Chris, I think there are three XML files: if I remember correctly they are
object.nib, info.nib, and classes.nib. What you do is look inside the
XXX.nib file (not the three I just mentioned, this one is actually a
directory) by either selecting it in the finder and (from a contextual menu)
select view package contents, or cd to it in the terminal. Then you can open
it with a text viewer -- e.g. in the terminal use the bbedit tool if you
have it, or open them with bbedit some other way, like drag-n-drop, even
though they are named .nib these three files are text files (but probably
have unix line endings).

One thing, though. One of the files (objects.nib?) is actually a binary
file. It has serialized objects from IB.

best,

Bob