Programmatically selecting a cell in a NSBrowser
Programmatically selecting a cell in a NSBrowser
- Subject: Programmatically selecting a cell in a NSBrowser
- From: Romain Champourlier <email@hidden>
- Date: Sat, 15 Oct 2005 13:28:42 +0200
Hello,
I have a question about the NSBrowser class. I currently manage to
fill it with data (through the use of the delegates' methods
browser:numberOfRowsInColumn: and
browser:willDisplayCell:atRow:column:). This works well, I'm fine.
Now I would like to make something more... My will is the following :
when the user click on a non-leaf cell, I would like the browser to
automatically select a given row in the coming column. This row would
be programmatically determined depending on the context. My problem
is that I currently found no way to perform this selection...
The NSBrowser's method selectRow:inColumn: is relying on the
delegate's browser:selectRow:inColumn method that I have to
implement ! But I do not know how to perform the selection... I also
tried to select the cell with the NSControl's selectCell: method and
even with the NSMatrix's one, but nothing worked...
Do someone have a clear solution for my problem ?
Thanks a lot in advance.
_______________________________________________
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