Re: [NEWBIE]: Selecting Cells in a Browser
Re: [NEWBIE]: Selecting Cells in a Browser
- Subject: Re: [NEWBIE]: Selecting Cells in a Browser
- From: Stéphane Sudre <email@hidden>
- Date: Sun, 26 Sep 2004 22:41:56 +0200
On dimanche, septembre 26, 2004, at 08:15 PM, J Tichenor wrote:
-- even though I have NSBrowser -selectedCell, how do I determine
what my current column is? NSCell doesn't have a -column method as
far as I can tell
It doesn't?
selectedColumn
- (int)selectedColumn
Returns the index of the last column with a selected item.
Ok, thanks. I didn't try that because I thought it had something to do
with selecting the whole column, as opposed to the column that the
selected column is in. So cool.
Any ideas on iterating through cells in the column?
If you need to iterate through cells, it means your source model is
wrong. Because the idea is to iterate through your data.
If what you want next is to select the newest cell in the appropriate
column. As soon as you have found the index in your data, you can use
the appropriate method from the NSBrowser class.
_______________________________________________
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