re:re:NSComboBoxCell in an NSTableView
re:re:NSComboBoxCell in an NSTableView
- Subject: re:re:NSComboBoxCell in an NSTableView
- From: Jeff Brown <email@hidden>
- Date: Thu, 20 Jan 2005 19:49:36 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Thanks mmalc
It's amazing how a question can jog something in your
mind.
I've had set the table view up so that it is bound to
an NSArrayController which in turn is bound to a class
cantained in an NSMutableArray in my File'sOwner. I
noticed that when I bound the column that contains the
combo box cell, the combo box cell wouldn't even show
it's list. When I unbound that cell, it shows the list
but not it's selected value.
I just realised after your question (don't ask me why)
that I hadn't bound the combo box cell to the
NSArrayController. So I did that. It still didn't
work. So who would have thought that I had to bind
both the column and the combo box cell to the
NAArrayController to get it working?
Cheers
Jeff
In your table view's data source, have you implemented
-tableView:setObjectValue:forTableColumn:row: (and
does that method actually set the value)?
mmalc
On Jan 20, 2005, at 6:30 PM, Jeff Brown wrote:
I've dragged an NSComboBoxCell into the NSTableColumn
of a tableView. I've then set up the internal list of
the combo box cell.
When I run the app and click on a combo box cell in
that column, the internal list drops down and you can
see its contents but when I make a selection, what I
selected disappears and you are left with a combo box
cell without a value.
_______________________________________________
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