Ticket #11550 (closed defect: fixed)
wxAUI doesn't work on OSX, problem with wxHIDKeyboard
| Reported by: | Mdx4 | Owned by: | csomor |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | wxOSX-Cocoa | Version: | 2.9-svn |
| Keywords: | wxAUI wxHIDKeyboard | Cc: | marco.serantoni@… |
| Blocked By: | Patch: | yes | |
| Blocking: |
Description
The aui sample hangs trying to redock a panel.
I've tracked down and an hang on wxHIDKeyboard::DoBuildCookies was evidentiated.
Debugging step by step i seen that at hid.cpp:504 the variable used in the for loop back down to 0.
nUsage was defined as INT but the call was for a LONG type.
Index: src/osx/core/hid.cpp
===================================================================
--- src/osx/core/hid.cpp (revision 62859)
+++ src/osx/core/hid.cpp (working copy)
@@ -504,7 +504,7 @@
CFArrayGetValueAtIndex(Array, i),
CFSTR(kIOHIDElementUsageKey)
),
- kCFNumberLongType,
+ kCFNumberIntType,
&nUsage);
