Re: Selecting Individual Cells in NSTableView
Re: Selecting Individual Cells in NSTableView
- Subject: Re: Selecting Individual Cells in NSTableView
- From: matt neuburg <email@hidden>
- Date: Wed, 16 Jul 2003 07:23:28 -0700
On Mon, 14 Jul 2003 19:31:20 -0500, "Francisco J. Bido" <email@hidden>
said:
>
I need to select individual cells within NSTableView. If that goes
>
well, I would like to select a sequence of cells either in a row or in
>
a column. This would be no different then what you see in spreadsheet
>
applications and the way the cell cursor is implemented.
Well, what is "select"? As far as I can tell, it means to remember that one
particular cell is special and mark it specially in some way. So what I do
is implement tableView:willDisplayCell:forTableColumn: and mark the special
cell specially in some way. The table's action method takes care of
clicking and its keyDown event takes care of arrow keys, so the user can
set what cell is special. m.
--------
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
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.