You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is, because BTRPopUpButton causes “-setMenu:” to be called within “-initWithFrame:” (via BTRPopupButtonCommonInit() and [self addObserver:self forKeyPath:@"menu.delegate" options:NSKeyValueObservingOptionNew context:NULL];) and it in turn calls self.menu, which is not set yet and calls through to “-setMenu:” again, resulting in an infinite loop.
Apple strongly recommends to only use ivars directly in the -init… path for this exact reason.
The text was updated successfully, but these errors were encountered:
This is, because BTRPopUpButton causes “-setMenu:” to be called within “-initWithFrame:” (via
BTRPopupButtonCommonInit()
and[self addObserver:self forKeyPath:@"menu.delegate" options:NSKeyValueObservingOptionNew context:NULL];
) and it in turn calls self.menu, which is not set yet and calls through to “-setMenu:” again, resulting in an infinite loop.Apple strongly recommends to only use ivars directly in the -init… path for this exact reason.
The text was updated successfully, but these errors were encountered: