Wait, did you mean you want consecutive items in the array to be consecutive 
table columns? I can't think of any way to do that.

On 2012-09-10, at 10:02 PM, Dave Fernandes <[email protected]> wrote:

> Select the table column in Xcode, and bind its Value binding to the array 
> controller with Controller Key = arrangedObjects, and Model Key Path = 
> attributeName for the entity.
> 
> On 2012-09-10, at 9:40 PM, Chuck Soper <[email protected]> wrote:
> 
>> An have an "Color" entity in my data model (I'm just using the word
>> 'color' for demonstrative purposes). Typically, I only expect to have 6 or
>> 8 colors for each instance. I'd like to create an NSArrayController for
>> the Color entity, then bind it to columns in an NSTableView. I'll need to
>> add and remove columns in a table as colors are added or removed.
>> 
>> I understand how to bind an array controller (for an entity) to rows in a
>> table, and how to bind a Text Field in the Table Cell View to an entity
>> property. I'm not sure how to go about this for columns in a table. I
>> assume that I may need to take a programmatic approach. Has anyone done
>> this? Or, can someone point me in the right direction?
>> 
>> Thanks,
>> Chuck
>> 
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list ([email protected])
>> 
>> 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/dave.fernandes%40utoronto.ca
>> 
>> This email sent to [email protected]
> 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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/dave.fernandes%40utoronto.ca
> 
> This email sent to [email protected]


_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [email protected]

Reply via email to