Commit Graph

4 Commits

Author SHA1 Message Date
Konstantin S. Matveyev
557b8526d1 Fix several problems with wxAppProgressIndicator in wxOSX
Don't release NSProgressIndicator too soon, we need to be able to keep
it to use it later, so move "release" from wxAppProgressDockIcon ctor to
its dtor.

OTOH, remove an extraneous "retain" to fix memory leak of
wxAppProgressDockIcon.

Finally, show the indicator, if it had been hidden, when Pulse() is
called for consistency with SetProgress().

Closes https://github.com/wxWidgets/wxWidgets/pull/1150
2019-01-19 23:13:02 +01:00
konstantin.matveyev
a985c84966 Fix crash in wxGauge with wxGA_PROGRESS under macOS
Hide, instead of destroying, the progress indicator in reset() to
prevent crashes if SetValue() is called later.

Closes https://github.com/wxWidgets/wxWidgets/pull/1137
2019-01-15 21:48:28 +01:00
Stefan Csomor
0a178ca374 analyzer warning: super init assign to self and check for nil , NSImageView leaking (contentView is a strong reference, therefore release it after assigning) 2017-06-07 14:03:05 +02:00
Dimitri Schoolwerth
11a5b83e2c Add OS X implementation of wxAppProgressIndicator.
Closes #16638.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2015-02-15 20:09:10 +00:00