To be more precise, my confusion is with bindings and NSTableView.

What I want to do is this:

1) Have a table with n columns (let's say 2, for kicks) and a variable number of rows
2) Column 1 holds a user-defined string/name for each entry (row)
3) Column 2 holds a popup with a set of choices. The popup is loaded from a persistent collection of objects

Creating a new entry, with a "+" button", will instantiate an XObject (arbitrary name). The "name" property of the new XObject will be set in column 1, and a number of optional settings for XStuff (arbitrary property) will be loaded into the popup in column 2.

This doesn't seem like a big deal, but I'm pretty confused. I want to set this up using bindings, but I'm note sure how I populate the popup in column 2, and I'm also unclear on who manages storing the index of the popup selection? Do I need to have a method to handle this in my XObject class, or is this something NSArrayController does?

If anyone could provide me with a run-through of the basic things I have to cover to manage this I'd really appreciate it - most of the tutorials I've found only cover single items in table cells, not automatically-populated popups...

thanks,

J.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to