I'm not sure if this is possible with bindings and Core Data, or how much glue code I'm going to have to write to do this, but I thought I'd ask to see if anyone else has done anything like this.
I want to display a table view with a set of columns that's not known at compile time, but rather at run time. The model has one entity for the rows, and related key-value pair entities for each column in the row. These are generated at run time based on the input data, but they are the same for all rows in a set. Each column may be of a different type than the other, but all the entries in a column are the same. I suspect I'll have to programmatically build the table columns each time the set changes (not quite sure how to do that, but I assume there are obvious methods for adding and removing columns). Once I'm building the columns, I expect I'd have to programmatically bind them to an NSArrayController. Not sure how I map a key name in a table column through the NSArrayController to my main entity, and through that to the related key-value pair entity. Override the primary entity's valueForKey and have it fetch the related property? Any caveats I should look out for? Suggestions and advice welcome. Thanks! -- Rick _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com