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 :
- Make an IBOutlet in your controller to point to the NSObjectController
- Drag an NSObjectController into the nib
- Add the names of the properties you're going to be binding with
- 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
webmonster@borkware.com