One Quickie


Manually creating a binding (Bindings->General)
[imageView bind: @"valuePath"
           toObject: imagesController
           withKeyPath: @"selection.fullPath"
           options: nil];
In Interface Builder, "Bind To" corresponds to imagesController, "Controller Key" would be selection, and "Model Key Path would be fullPath.

Use

    [imageView unbind: @"valuePath"];
to remove a binding.



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

webmonster@borkware.com