#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X
Lion
----------------------------------------------+-----------------------------
Reporter: mojca | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9.2
Keywords: magic mouse scroll NSScrollWheel | Blockedby:
Patch: 0 | Blocking:
----------------------------------------------+-----------------------------
I'm using gnuplot with wxWidgets 2.9.2 on Mac OS X Lion. When I try to
scroll with mouse it returns me the following warnings:
{{{
2011-12-02 17:29:04.748 gnuplot[51573:3103] -_continuousScroll is
deprecated for NSScrollWheel. Please use -hasPreciseScrollingDeltas.
2011-12-02 17:29:04.749 gnuplot[51573:3103] -deviceDeltaX is deprecated
for NSScrollWheel. Please use -scrollingDeltaX.
2011-12-02 17:29:04.749 gnuplot[51573:3103] -deviceDeltaY is deprecated
for NSScrollWheel. Please use -scrollingDeltaY.
}}}
I know that it is only a warning, and the code still works, but it might
well be that this will actually stop working when OS X 10.8 gets released
(which might be in about a year).
I'm sorry for not providing a minimal example (I don't know how to code
with wxWidgets at all), but I hope that link to Apple documentation saying
that function has been deprecated will be enough.
I have found ticket nr. [http://trac.wxwidgets.org/ticket/12168 12168] in
database, but I believe that this is about a different problem.
A while back I also asked a related question on forum
(http://forums.wxwidgets.org/viewtopic.php?f=23&t=30849) about handling
more advanced mouse events, but there was no response to it. Maybe I
should create a new ticket with feature request on this trac?
Reference:
-
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/EventOverview/HandlingMouseEvents/HandlingMouseEvents.html#//apple_ref/doc/uid
/10000060i-CH6
- http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html
(Mac OS X Lion Release Notes)
Citation:
"There are new NSEvent methods to access the scroll wheel event delta that
allow for more precise delta values from Magic Mice and trackpads. -deltaX
and -deltaY should no longer be used when the event is type
NSScrollWheel."
I'm using:
- Mac OS X Lion 10.7.2
- XCode 4.2.1
- gcc: i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc.
build 5658) (LLVM build 2336.1.00)
- MacPorts with wxwidgets 2.9.2
- gnuplot from CVS source with wxt terminal
--
Ticket URL: <http://trac.wxwidgets.org/ticket/13727>