[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nsmatrix stepping between cells
From: |
Adam Fedor |
Subject: |
Re: nsmatrix stepping between cells |
Date: |
Wed, 25 Feb 2004 10:27:23 -0700 |
On Sunday, February 22, 2004, at 07:31 PM, reuss wrote:
here is my solution that seems too slow
- (void) keyUp: (NSEvent *) theEvent
{
if ([theEvent keyCode] == 100 && mrow > 0 && mcol == 0 )
{
if (counter >0)
{
[matrix selectCellAtRow: mrow-1 column: 6];
[self performSelector:
@selector(changeBackground:)];
counter = 0;
}
else
{
counter++;
}
}
I don't know why that would be slow.
Another solution might be to override -moveLeft: to do what you want.