• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
nibtool output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: nibtool output
      • From: Dave Rehring <email@hidden>
  • Prev by Date: Re: Making an application with Tiger-only features exit gracefully on 10.3?
  • Next by Date: Re: Per-document preferences?
  • Previous by thread: Re: iSight application needed.
  • Next by thread: Re: nibtool output
  • Index(es):
    • Date
    • Thread