Closed DonaldHays closed 7 years ago
Good catch on the weak link. The standard in the code for that is to name the variable weakSelf when you're just weakifying a self reference, but that's a nitpick and can get fixed later.
I'd rather use the UserDefaultsController here, but I'm not religious enough about it to want to spend the time running down a solved problem.
Loading the Audio Preferences tab was resulting in an exception being thrown. I couldn’t figure out exactly what was causing it, except that it was related to the checkbox bindings to User Defaults. I addressed the issue by exposing dynamic properties on
BTRAudioViewController
forcourtesyTone
andvoiceAnnounceOnStatusChange
which reflect the corresponding keys in User Defaults, then changing the checkbox bindings away from User Defaults and to theBTRAudioViewController
instance, similar to the bindings for the pop-up buttons. Fixes #43Also, I weak-ified
self
in theBTRAudioDeviceChanged
notification listener, to avoid that observer registration preventing theBTRAudioViewController
instance from deallocating.