• 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
[ANN] bindlist.py: A simple tool for listing all the bindings in a nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ANN] bindlist.py: A simple tool for listing all the bindings in a nib


  • Subject: [ANN] bindlist.py: A simple tool for listing all the bindings in a nib
  • From: Michael McCracken <email@hidden>
  • Date: Tue, 26 Jul 2005 16:11:59 -0700

Hi, if you are also frustrated by not being able to see the bindings in a nib
without lots of clicking around in IB, you might like this script I wrote that
produces a listing of all the bindings in a nib.

Hopefully this can also make documenting and emailing about bindings a
little easier too.

You can get it here:
http://michael-mccracken.net/software/bindlist.py

It requires PyObjC to run. You can get that from here:
http://pyobjc.sourceforge.net/

Here's an example of running it on the nibs from the "Groups" example
in mmalc's bindings examples)

% bindlist.py ~/Desktop/Groups/English.lproj/*.nib
* /Users/mike/Desktop/Groups/English.lproj/MainMenu.nib has no bindings.
* /Users/mike/Desktop/Groups/English.lproj/MyDocument.nib :
NSArrayController "MasterArray" :
   contentArray -> NSCustomObject "File's Owner": allEmployees

NSButton ">>" :
   enabled -> NSArrayController "MasterArray": canRemove

NSTextField "NSTextField" :
   value -> NSCustomObject "File's Owner": groupName

NSButton "<<" :
   enabled -> NSArrayController "GroupEmployees": canRemove

NSTableColumn "<null>Last" :
   value -> NSArrayController "GroupEmployees": arrangedObjects.lastName
   value -> NSArrayController "MasterArray": arrangedObjects.lastName

NSTextField "Group Members:" :
   displayPatternValue1 -> NSArrayController "GroupEmployees":
arrangedObjects.@count

NSArrayController "GroupEmployees" :
   contentArray -> NSCustomObject "File's Owner": groupEmployees

NSTableColumn "<null>First" :
   value -> NSArrayController "GroupEmployees": arrangedObjects.firstName
   value -> NSArrayController "MasterArray": arrangedObjects.firstName

NSTextView "NSTextView" :
   data -> NSCustomObject "File's Owner": groupTask

Let me know if you like it, and if you have any improvements, please
send them back to me.

Thanks,
-mike

--
Michael McCracken
UCSD CSE PhD Candidate
research: http://www.cse.ucsd.edu/~mmccrack/
misc: http://michael-mccracken.net/blog/
 _______________________________________________
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: [ANN] bindlist.py: A simple tool for listing all the bindings in a nib
      • From: "John C. Randolph" <email@hidden>
  • Prev by Date: Re: Crash after [NSData dataWithData:(NSMutableData *)]
  • Next by Date: Re: NSDocument newbie
  • Previous by thread: Re: Cocoa and cooperative threads
  • Next by thread: Re: [ANN] bindlist.py: A simple tool for listing all the bindings in a nib
  • Index(es):
    • Date
    • Thread