Re: NSBrowser clearing (pt.2)
Re: NSBrowser clearing (pt.2)
- Subject: Re: NSBrowser clearing (pt.2)
- From: Eric Ridge <email@hidden>
- Date: Mon, 21 Jan 2002 18:04:50 -0500
Hi everybody,
I'm sorry for bothering you about this question of mine, but I can't go
on...As you know, I was just trying to clear the selection an user does
into an NSBrowser, in other words I was trying to un-highlight every
single cell.
Here is what I do:
I haven't yet used NSBrowser, but I use NSTableView and NSOutlineView a
lot (too much!), so I suspect it's very similiar.
Try:
for (i=0; i<numColumns; i++) {
[browser selectRow:-1 inColumn:i]
}
With NSTable.OutlineView, selecting row -1 deselects everything.
eric
for(index=0;index<count;index++)
{
cell=[array_of_source_cells objectAtIndex:index];
[cell reset]; // "cell" is a previously defined id
}
But nothing is deselected... why ? What is the mistake I'm stuck into?
Mahy thanks to everyone of you for your neverending kindness to newbies
like me.
--
Riccardo Santato
www.riccardosantato.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.