Re: [Pyobjc-dev] Wild idea #17: Extra functionality for NibClassBuilder
Brought to you by:
ronaldoussoren
From: <bb...@ma...> - 2003-06-11 18:33:59
|
On Wednesday, Jun 11, 2003, at 05:43 US/Eastern, Jack Jansen wrote: > If we could somehow deduce the bits that the user is probably > interested in and only present that (at least, by default) that would > help a lot. In the iClass example the author has created one class, > one window with a handful of controls and a small number of > connections. (Or is there a new menu entry too? I don't think so, but > I'm not sure). If we could show just that bit of the dump you'd end up > with around 50 lines of information that show you all the stuff you > need to know. It is just a matter of parsing a bit and printing the report. If you grab the list of Objects, you can then dump the connections in a fashion that indicates source and destination: x = "{%s}" % os.popen("nibtool -8 -a MainMenu.nib").read() dict = NSString.propertyList(x) c = dict['Connections'] for k in c: print c[k] |