Skip navigation.
 
mlRe: Binding to a controller in a different nib
FROM : Kyle Sluder
DATE : Thu Feb 28 20:41:12 2008

On Thu, Feb 28, 2008 at 12:47 PM, Randall Meadows <<email_removed>> wrote:
> Please help me extend my understanding of bindings...I grasp the
>  simple stuff, but not yet to an extent to be able to apply that to
>  complex situations.
>
>  In my main window (which resides in it's own nib, and is controlled by
>  a custom window controller), I have a combobox.  I'd like to populate
>  the contents of that via bindings.
>
>  In my main nib file is where the controller lives that maintains the
>  information that I want to populate that combobox with.  This
>  controller has a dictionary ("infoDictionary"), and the keys of that
>  dictionary are what I want displayed in the combobox.


Wire up the controller to an infoController outlet in your application
delegate, then bind the combo box to
NSApplication.delegate.infoController with whatever keypath you'd
like.

--Kyle Sluder

Related mailsAuthorDate
mlBinding to a controller in a different nib Randall Meadows Feb 28, 18:47
mlRe: Binding to a controller in a different nib Randall Meadows Feb 28, 19:23
mlRe: Binding to a controller in a different nib Kyle Sluder Feb 28, 20:41