Re: adding Columns to a NSTableView with bindings?
Re: adding Columns to a NSTableView with bindings?
- Subject: Re: adding Columns to a NSTableView with bindings?
- From: "I. Savant" <email@hidden>
- Date: Mon, 28 Nov 2005 16:05:48 -0500
Whether you're using bindings or a data source, the approach is
still the same (except step 4, the part where you actually bind the
column):
1 - Create a new NSTableColumn.
2 - Set its properties as needed.
3 - Assign it a data cell if needed.
4 - Call bind:toObject:withKeyPath:options: on it to bind its value
to the controller at the correct keypath and any desired options.
5 - Add the column to the table (hint, the method for this is found
in NSTableView and its name is pretty obvious).
See the documentation for the details for each of these steps;
it's all there. You might also search this mailing list's archives; I
believe this has been discussed before (but I may be wrong).
List - I banged this out pretty fast - if I've missed something,
feel free to add/correct.
--
I.S.
On Nov 27, 2005, at 12:59 PM, Matthias Winkelmann wrote:
Hi,
I'm trying to find a way to dynamically add columns to a table
based on the rows in another table.
Specifically, I have a first table where the user can enter
attributes. In a second table, I want to let the user enter some
objects, and specify the values for the attributes from the first
table.
Is there a way to do this with bindings? If not, what's the best
way to do this?
regards,
Matthias
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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