• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Very very simple bindings problem??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: NSTextView - printing page numbers and headers
  • Next by Date: Debugging Stdout
  • Previous by thread: Re: Setting the source of an NSArrayController from more than one other controller
  • Next by thread: Re: Very very simple bindings problem??
  • Index(es):
    • Date
    • Thread