#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X Lion

72 views
Skip to first unread message

wxTrac

unread,
Dec 5, 2011, 3:27:14 PM12/5/11
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13727>

#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>

wxTrac

unread,
Jul 23, 2012, 1:43:08 PM7/23/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:1>

#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X
Lion
----------------------------------------------+-----------------------------
Reporter: mojca | Owner:
Type: defect | Status: confirmed
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9.2
Keywords: magic mouse scroll NSScrollWheel | Blockedby:
Patch: 1 | Blocking:
----------------------------------------------+-----------------------------
Changes (by arthur.j.odwyer@…):

* cc: arthur.j.odwyer@… (added)
* status: new => confirmed
* patch: 0 => 1


Comment:

I've attached a patch, which I have not tested --- I downloaded the source
from SVN to apply this patch, but I don't care to try building or
installing wxWidgets from scratch. The patch is based on a patch for the
same issue from Mozilla:
https://bugzilla.mozilla.org/attachment.cgi?id=634989&action=diff

If someone could apply this patch, compile, and run some tests on OS X,
that would be awesome.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:1>

wxTrac

unread,
Jul 24, 2012, 1:46:46 AM7/24/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:2>

#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X
Lion
----------------------------------------------+-----------------------------
Reporter: mojca | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9.2
Keywords: magic mouse scroll NSScrollWheel | Blockedby:
Patch: 1 | Blocking:
----------------------------------------------+-----------------------------
Changes (by csomor):

* owner: => csomor
* status: confirmed => accepted



--
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:2>

wxTrac

unread,
Jul 24, 2012, 3:02:18 AM7/24/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:3>

#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X
Lion
----------------------------------------------+-----------------------------
Reporter: mojca | Owner: csomor
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9.2
Keywords: magic mouse scroll NSScrollWheel | Blockedby:
Patch: 1 | Blocking:
----------------------------------------------+-----------------------------

Comment(by csomor):

thanks for the patch


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:3>

wxTrac

unread,
Jul 24, 2012, 5:14:53 AM7/24/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:4>

#13727: continuousScroll, deviceDeltaX/Y in NSScrollWheel is deprecated in OS X
Lion
--------------------------+-------------------------------------------------
Reporter: mojca | Owner: csomor
Type: defect | Status: closed
Priority: normal | Milestone:
Component: wxOSX-Cocoa | Version: 2.9.2
Resolution: fixed | Keywords: magic mouse scroll NSScrollWheel
Blockedby: | Patch: 1
Blocking: |
--------------------------+-------------------------------------------------
Changes (by SC):

* status: accepted => closed
* resolution: => fixed


Comment:

(In [72195]) avoid deprecated API, fixes #13727


--
Ticket URL: <http://trac.wxwidgets.org/ticket/13727#comment:4>
Reply all
Reply to author
Forward
0 new messages