Very very simple bindings problem??
Very very simple bindings problem??
- Subject: Very very simple bindings problem??
- From: email@hidden
- Date: Mon, 3 Oct 2005 18:12:12 -0700
Hi everyone,
I know a lot of people are busy, but if a quick answer could be relayed,
I would be very appreciative.
I have a simple Model (coredata) of Employees (like from the Tutorial),
my app has no code at all, this is strictly bindings. The table view
I have, has a list of NSPopUpMenuCells that display the list of
employees, the one chosen is set to the manager of the selected
employee (also employee).
Here is the binding to the Employee Array Controller:
Content: arrangedObjects
ContentValues:
arrangedObjects.firstName
SelectedObject: arrangedObjects.manager
I would have expected this to work, but it doesn't.
When it is set by a separate PopUpMenu (not in the array) with
similar settings except selectedObject is selection.manager,
the value appears in the Popup menu inside the table, yet clicking on
the cell causes an exception: [employee count] not recognized.
Even though arrangedObjects is supposed to return an array!
So my guess is that NSColumn/PopUpCell wants an array of arrays for
the content?
How would I go about doing that when the second array would be itself?
Any help would be appreciated...
Thanks!
_______________________________________________
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