objective c - keyUp event heard?: Overridden NSView method -


Update: Now I'm overriding an NSView keyup method from an NSView subclass which is set to the first responder as below, But still there is no evidence to see it being called.

  @implementation svsView - (BOOL) accepts FirstResponder {return yes; } - (zero) key up: (NSECT *) Event {// - Keeping Up Chees - NSLog (@ "Keys Enhanced!"); } @end  

- Original post - I'm new to Coco and Obj-C and am trying to do one (zero) key: from within the control of my controller class (Which is of the type NSC controller itself) I'm not sure that this is the right place, however, I have a series of sets for each unique key equivalent (IB button attribute) and call each my (IABTP) key input method Which does And the identification of each key on the other object. It just runs fine, but I also want to track when every key is released.

- Original [bad] example -

  @implementation svsController // init / / IBActions - (IBAction) Key Input: (id) sender {// - stuff below Key} - (zero) key up: (NSEvent *) event {// - key above content -} @end  

Forgive my Nobary, but should I put this method in another category or do it differently? Although it is, however, I need that the controller can access class-owned items.

Thanks for any information.

NSResponder sub-class (such as the custom subclass of NSView) handles major events. That handle more abstract-level events such as "move left / right", "insert new line", etc. Then they can send a message to an administrator and respond accordingly.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -