Re: setting the datacell of table to combobox
Re: setting the datacell of table to combobox
- Subject: Re: setting the datacell of table to combobox
- From: Mike Ferris <email@hidden>
- Date: Thu, 4 Apr 2002 09:06:42 -0800
-dataCellForRow: is what you want. You need to subclass NSTableColumn
and override that method to return the cell for any given row (and you
need to be prepared for the row to be -1 and return a "default" cell in
that case too).
As for the exception you're getting, my guess is this is pilot error.
Put a breakpoint on -[NSException raise] to figure out what might be
causing this.
Mike Ferris
Begin forwarded message:
From: Annie Felix <email@hidden>
Date: Thu Apr 04, 2002 02:47:46 AM US/Pacific
To: email@hidden
Subject: setting the datacell of table to combobox
Hi
I have a table, in which data is loaded from database.
When I click new button new blank row should be
appended and the datacell is set to combobox, from which
I can select a value by double clicking.Once the data is
selected the datacell is converted back to textfield cell.
I have used the tablecolumn and set the datacell value to
combobox.But the entire column of table gets changed to
combo box.Is there any possibility of setting only a single
cell to combocell?
I tried using dataCellForRow: But it gives the following error.
[NSTextFieldCell setDataCell:]: selector not recognized error.
Regards
Annie
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.