I am using MacPorts for wxWidgets, what is the best way to apply the patch?
The "best" way is probably to set up your own local ports tree,
or whine on the new MacPorts developers to patch their version.
(see the Code::Blocks wiki on how to build your own wxMac port)
Anyway, you need this file - which should go in wxWidgets*/files/:
http://www.algonet.se/~afb/wx/patch-polling.diff
(you might need to edit the top two lines to say "wxWidgets-2.6.3")
And then you need to edit the wxWidgets*/Portfile to include this patch:
extract.only ${name}-${version}${extract.suffix}
patchfiles patch-polling.diff
post-extract {
* usually lives in something like: /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/graphics/wxWidgets
"port install" builds it silently, so I never see the source.
You can use port install -d wxWidgets, if bored. :-)
MacPorts isn't seeing much development since the name change,
but I hope they will get around to fixing their bugs some day... ?
Meanwhile, I'm using my own local DarwinPorts tree that I have.
It builds OK for wxMac/wxGTK/wxMSW on Mac OS X 10.4 (Intel).
I think I'll just add some crude hack to look for the special wxMac case
of -1 for a PID, and try to find the real one with ps or something...
ps -a -x -c -o command,pid,ppid | grep $$ | grep gdb
But I'm not really sure what the parent pid is for a LSOpenFromURL ?
Will do some test code I think, and you can tell me which one works.