Re: NSMatrix Question...
Re: NSMatrix Question...
- Subject: Re: NSMatrix Question...
- From: "Mark A. Stratman" <email@hidden>
- Date: Wed, 30 Jun 2004 15:34:36 -0500
This may not help, but have you tried NSMatrix's
highlightCell:atRow:column: rather than calling the individual cell's
setHighlighted: ?
My guess is that the matrix is keeping its own record of which cells
are highlighted. By directly manipulating the cell you're "going over
its head" so it doesn't know that the cell should be highlighted, and
it reverts the cell back to the state it thinks it should be in.
If that's not any help and nobody else responds on here, try running it
in the debugger and pinpointing as best you can where it's being
un-highlighted.
- mark
On Jun 29, 2004, at 10:34 PM, Jerry LeVan wrote:
Hi,
I have an NSMatrix of subclassed NSImageCells. The matrix is
setup in radiobutton mode so my action will be called when
a cell is clicked.
I want to keep track of which cell is the selected cell by
highlighting the cell. ( I use setHighlighted:YES)
If I select cells under program control, the cells highlight
nicely.
If I select a cell by clicking on the rascal, the cell highlights
and then @#!& unhighlights. ( my action routine does a
setHighlighted:YES)
so it might be the case that the NSMatrix code messes with the
highlighting after the action routine returns....
Is there any way I can keep the selected cell highlighted when
clicking on the rascal?
Jerry
_______________________________________________
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.
_______________________________________________
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.