Discussion:
wxTimer issue on OSX
(too old to reply)
TcT
2014-10-21 13:40:41 UTC
Permalink
Hi,
I'm currently preparing a native implementation of wxNotificationMessage
for OSX.
My patch against trunk (probably also 3.0.x) is here:
https://gist.github.com/TcT2k/541181181f19c826a748

My last remaining problem is auto hiding notifications where I use a
wxTimer but my ::Notify() is never called.
I've also tried wxEVT_TIMER on the timer and using the timer with
wxNotificationMessage as the parrent.

The result is always the same my timer never triggers.

Maybe somebody here has an idea what goes wrong here?

The code isn't really long and there are no threads involved but I just
can't figure out what I'm doing wrong.

Regards,
Tobias
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
TcT
2014-10-23 11:00:18 UTC
Permalink
Figured it out.

The timer gets deleted in the notifications dtor and is therefore canceled
before it's triggered.
Post by TcT
Hi,
I'm currently preparing a native implementation of wxNotificationMessage
for OSX.
https://gist.github.com/TcT2k/541181181f19c826a748
My last remaining problem is auto hiding notifications where I use a
wxTimer but my ::Notify() is never called.
I've also tried wxEVT_TIMER on the timer and using the timer with
wxNotificationMessage as the parrent.
The result is always the same my timer never triggers.
Maybe somebody here has an idea what goes wrong here?
The code isn't really long and there are no threads involved but I just
can't figure out what I'm doing wrong.
Regards,
Tobias
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...