One Quickie

Binding to your AppController (Bindings->General)
If you have an AppController object in your nib file, and it's not File's Owner, but you want to use bindings with it, you can use an NSObjectController :
  1. Make an IBOutlet in your controller to point to the NSObjectController
  2. Drag an NSObjectController into the nib
  3. Add the names of the properties you're going to be binding with
  4. in AppController's awakeFromNib method, do [objController setContent: self];
By setting the content value in awakeFromNib helps prevent a retain cycle which can lead to memory leaks.

borkware home | products | miniblog | rants | quickies | cocoaheads
Advanced Mac OS X Programming book