nibtool output
nibtool output
- Subject: nibtool output
- From: Michael McCracken <email@hidden>
- Date: Fri, 24 Jun 2005 17:22:00 -0700
Hi, I wanted to write a quick script to grab the output of nibtool -jx
and turn it into a more readable display of what bindings exist in a
nib, but I ran into a snag: nibtool's output isn't always quite a
correct property list.
If you run it on a simple nib, it will create a parseable plist, but
if you run it on one with bindings, including the keys
'iBDeclaredKeys' on an object, or 'Options' on a connection, you get
extraneous double-quotes around the array or dictionary, repectively.
Unfortunately, this isn't so easy to fix when parsing - sometimes
sequences of "{ ... }" are intended to be parsed as strings,
apparently, so you can't just s/"{/{/ and s/}"/}/ etc., then read it
as a plist...
Am I missing some other way to parse plists, or is this a nibtool bug?
Also, if there's another way to get this info about bindings, perhaps
programmatically,
I'd be interested to hear about it.
-mike
--
Michael McCracken
UCSD CSE PhD Student
San Diego Supercomputer Center
http://www.cse.ucsd.edu/~mmccrack/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden