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 19:34:12 +0200
On dimanche, septembre 26, 2004, at 07:01 PM, J Tichenor wrote:
Hi, me again. I'm going to ask endless "obvious" questions, hoping
everyone's patience will hold and hoping that others are reading who
are wondering the same things.
I want to be able to select specific cells in my browser
programatically, specifically when a new record has been added to the
data graph. So:
- I have added a new base object in a file structure/hierarchy -- the
objects are recursive: ie: a myRecord has an array of myRecords
- depending on where in the graph I have added the object, I need to
reload the column that the object will fit into and then select the
newest object's cell
- I have Browser -selectedCell to tell me where I am when the user
adds a new myRecord
- I now want to update the column that had the newest myRecord added
and select the record. I know I need to use -selectCell, but it's
determining the cell with the latest added record that is tripping me
up. It's easy to figure out what the title of the latest cell is -
same as the title of the latest myRecord.
The questions are:
-- 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.
_______________________________________________
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