Re: Moving objects with the mouse
Re: Moving objects with the mouse
- Subject: Re: Moving objects with the mouse
- From: Yann Bizeul <email@hidden>
- Date: Thu, 23 Sep 2004 09:48:09 +0200
I would override mouseDown and mouseMoved NSView's method to change position of the views
But if your NSView's are NSButtons, there is a risk to not receive mouse events, there should be a solution somewhere in the archives...
--
Yann Bizeul - yann at tynsoe.org
Cocoa Developer, visit my projects at :
http://projects.tynsoe.org/
Le 23 sept. 04, à 09:34, Peter Karlsson a écrit :
Dear list!
I have a NSView where the user programatically adds objects like buttons, sliders and so on. I have 4 buttons where the user can move the object in any direction, up, down, left and right. This is good for moving the object with precision but it would be much better if the user could move the object with the mouse, and only use the 4 buttons the last bit if needed. Can someone please tell me a simple way to do this?
Best regards Peter
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden