MiMo42 / MMTabBarView

A Mac OS X tab bar view that works on 10.9+ with Xcode 9.3+. Pull requests welcomed.
http://mimo42.github.com/MMTabBarView/
243 stars 79 forks source link

Demo app : 'Style' popup menu is disabled #76

Closed barijaona closed 3 years ago

barijaona commented 4 years ago

With demo app based on current master, the content of the 'Style' popup menu (in configuration drawer) is greyed out. Observed on macOS 10.15.6, Xcode 11.6

Seems to be caused by commit 9e03810 cc @jeromectm

jeromectm commented 4 years ago

True; MMTabBarView's _delegate was previously weak in the declaration, but strong in the implementation. Maybe we should remove weak from the declaration, instead of adding the __weak attribute to the implementation. However in this case, client apps should make sure that the delegate does not have a strong reference to the MMTabBarView, or there will be a retain cycle and none of them will ever be released. In my app, I will have to set the delegate to nil before closing the window containing the MMBarBarView, as the delegate is the object owning the window.

barijaona commented 3 years ago

Fixed by #77