zi stuff
2008.03.30, 07:48 AM
Hello,
I have a problem, I have a view witch has to respond on events like mouse events, mouse moves and keyboard events.
- (BOOL)acceptsFirstResponder {
return YES;
}
Here I set acceptsFirstResponder to YES, now my view do responds to keyboard events and mouseMoves. But I cann't redraw te view sometimes. When I set acceptsFirstResponder to NO, my view don't responds to keyboard events and mouseMoves. But I can redraw te view when I want. For example :
- (void)action:(NSNotification *)note {
NSBeep();
[self setNeedsDisplay:YES];
}
Now the view does beep, but don't redraw itself.
How can I do this??
Thanks
I have a problem, I have a view witch has to respond on events like mouse events, mouse moves and keyboard events.
- (BOOL)acceptsFirstResponder {
return YES;
}
Here I set acceptsFirstResponder to YES, now my view do responds to keyboard events and mouseMoves. But I cann't redraw te view sometimes. When I set acceptsFirstResponder to NO, my view don't responds to keyboard events and mouseMoves. But I can redraw te view when I want. For example :
- (void)action:(NSNotification *)note {
NSBeep();
[self setNeedsDisplay:YES];
}
Now the view does beep, but don't redraw itself.
How can I do this??
Thanks