First of all I had a window with my custom control, it was just awake on the mouse to accept the events that moved mouse. .FromNib:
code:
[[auto window] makeFirstResponder: self]; [[Self window] Set XpectmosmoEdvent events: Yes];
Now I am doing something with four of them in the same window, and this does not work so beautifully. First of all, I took them out of control awareness and decided that I want to use my app controller to manage it [window makefender responder: view]
My question is, How can I manage four to see if I want everyone to respond to the mouse event? Right now, I have asked the window to respond to the mouseMoved event but no mouse is responding to the mouse.
You will also need to override - return yes to answer in advance.
#pragma Icon NSResponder overrides - (BOOL) accepts FirstResponder {YES; }
-MoshuaEdit events are expensive so I turn off the move events of the mouse when the mouse-message of my control is called and I change it on-in.
- (zero) mouseAnit: (nsecnt *) event {[[self window] set EXPECTMOISMOIDEVENTEES: Yes]; [[Self-window] Makeup Responder: Self]; } - (Zero) Mouse Mice: (nse * *) Event {...} - (empty) Mouse accrued: (NSET *) Event {{[Safe Window] Set EXPECTMOISMOIDEVENTEES: NO]; }
I tested it quickly in my custom control application and I repeated the control in the Nib File several times and it worked as expected.
You may also need it:
- (zero) Wake up framesmranab [[auto window] setexpectemosemoids: Yes]; [Self addTrackingRect: [self esteem] Owner: Self user data: zero estimated inside: yes]; }
I do not think that - ExclamationMoisonEvent is required, but I am pretty sure that the Tracking is a Rect code, you may also have to experiment with the value of the estimate: The parameter, but this is the document.
Comments
Post a Comment