Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 3, 2010, 07:47 PM   #1
Chirone
macrumors 6502
 
Join Date: Mar 2009
Location: NZ
Mouse Dragged and view getting away too much

Not sure how to say this but in my program i have some nsviews which change position when the mouse is dragged on them (click on the view, drag and it follows with the same offset that it had when you clicked on it)

works fine... except for when you drag the mouse really fast back and forward.
eventually the view has a massive offset from the mouse

i've moving the view using the NSEvent's deltaX and deltaY, in one of the apple sample codes (i think it's sketch?) it does the same but it never has this problem.

any idea whats happening?
Chirone is offline   0 Reply With Quote
Old Nov 3, 2010, 10:48 PM   #2
rossipoo
macrumors regular
 
Join Date: Jun 2009
Another way to do it would be to save the location of the starting click, and the original position of the view, then when the mouse is moved, set the window frame to originalPosition + mouseMove - mouseStartClick.
rossipoo is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Too much heating to give damage? emir MacBook Pro 5 Nov 24, 2011 08:44 PM
Garageband and electric guitar has too much noise! linkandzelda Mac Applications and Mac App Store 9 Apr 30, 2011 08:45 PM
iTunes HD television episodes - buy and you get SD, too xraydoc Mac Applications and Mac App Store 1 Sep 9, 2008 08:39 PM
is getting an IMac and Macbook too much? gloryofgreece Buying Tips and Advice 26 Feb 24, 2008 07:18 PM


All times are GMT -5. The time now is 12:18 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC