Re: mouse moved events in NSView?
Re: mouse moved events in NSView?
- Subject: Re: mouse moved events in NSView?
- From: Allan Odgaard <email@hidden>
- Date: Wed, 12 May 2004 03:33:58 +0200
On 12. May 2004, at 3:14, David Piasecki wrote:
I actually just did that a few minutes ago, but thanks. It's still not
working, though I think Satoshi is correct regarding setting the first
responder for mouse moved events.
Well yes, you need both!
I just don't know how to do that. So far I tried overriding the
acceptsFirstResponder method to always return true.
ObjectiveC uses YES/NO, not true/false (although true will do the
same). Did you try to overload becomeFirstResponder to see if your
view ever becomes the first responder? You need to either click the
view (with the mouse) or set the windows initial first responder
setting to the view in question -- also, be aware that the window
cannot (by default) become key if it has no title bar and resize
gadget.
If you can't make it work, post some code.
_______________________________________________
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.