inter-NIB binding problems, but only with NSTableColumn
inter-NIB binding problems, but only with NSTableColumn
- Subject: inter-NIB binding problems, but only with NSTableColumn
- From: "Sean McBride" <email@hidden>
- Date: Fri, 6 Jan 2006 00:09:16 -0500
Hi all,
I am having a hell of a time binding to a controller in a different
nib. Here's the situation:
nib1 has an NSArrayController and a window with several UI elements
successfully bound to said controller. nib2 has a window with an
NSTextField and an NSTableView, and I want to bind both to the
controller in nib1. I have bound the text field like so:
bind to: Shared Application
Controller key: (forced blank)
Model key path: delegate.arrayController.selection.name
This works great! But when I try to bind the NSTableColumn similarly:
bind to: Shared Application
Controller key: (forced blank)
Model key path: delegate.arrayController.arrangedObjects.name
It doesn't work, the table is empty.
My app's delegate is 'MyDocument', nib1 is 'MyDocument's nib,
'arrayController' is an IBOutlet to an NSArrayController that is freeze
dried in nib1, the array controller's array contains instances of a
simple class that has a 'name' NSString property.
What am I doing wrong? Thanks a lot!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Mac Software Designer Montréal, Québec, Canada
_______________________________________________
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