Is there any way to programmatically create every you need for a
table column except for dragging the table column into a window in
IB, setting the number of columns to zero, and making the connection?
Basically, I want to create multiple columns for my table view, and
populate them from an array or dictionary. Some sample code would be
Some of the most important words from your question seem to have been
swallowed by the cookie monster, so it isn't entirely clear what
asking. But it looks like you're asking how to create a table
code. The answer is: you do it the same as you create anything else in
Cocoa, namely with alloc and the designated initializer. So:
That's it. If there are other aspects of the table column you wish
such as its header cell string, width, editability, movability,
right ahead; RTFM on NSTableColumn to see what sorts of things you
The last thing you ask about is how to "populate" the table column.
tables and columns don't contain data in Cocoa (data sources do),
is nothing to populate. If you want the table column bound, bind it
bind:...). Or, if using an old fashioned data source (as in
NSTableDataSource), there is nothing to do, since your data source
asked the correct Three Big Questions automatically (this is what the
identifier is for).
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