Nicholas Riley pointed me to nibtool(1), which looks like a good start on
mechanically extracting a nib's information.  Unfortunately, the output
is rather voluminous and encoded in (sigh) plist format.  It should be
possible, however, to snarf in the file as a data structure, walk it a bit,
and produce something like the report I created by hand.

If I get inspired, I may try to write a script to do that.  Meanwhile,
here's a sample script to use nibtool(1).  It should be run from within
the project directory...

:
# ntw - nibtool wrapper
#
#  Runs nibtool, with selected options
#
# Written by Rich Morin <[EMAIL PROTECTED]>, CFCL, 2003.02

LANG=English.lproj
NIBS='MainMenu MainWindow'
RPTS='classes connections hierarchy objects'

for nib in $NIBS; do
  echo ">>> $nib"
  echo ''
  for rpt in $RPTS; do
    nibtool --$rpt --macosroman $LANG/$nib.nib
    echo ''
  done
done | tee ntw.log

--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm    - my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc     - Prime Time Freeware's Darwin Collection

Reply via email to