Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

-[NSObject removeObserver:forKeyPath:context:] is 10.7+

  • Loading branch information...
commit f7b702cb6a39cf0b1d5acb4d1075c5aba4d5cf1c 1 parent b2a6836
@joshaber joshaber authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/UIKit/TUIProgressBar.m
View
8 lib/UIKit/TUIProgressBar.m
@@ -191,10 +191,10 @@ - (id)initWithFrame:(CGRect)frame style:(TUIProgressBarStyle)style {
- (void)dealloc
{
- [self removeObserver:self forKeyPath:@"drawTrack" context:&GHUIProgressBarSetNeedsDisplayObservationContext];
- [self removeObserver:self forKeyPath:@"drawFill" context:&GHUIProgressBarSetNeedsDisplayObservationContext];
- [self removeObserver:self forKeyPath:@"progress" context:&GHUIProgressBarSetNeedsDisplayObservationContext];
- [self removeObserver:self forKeyPath:@"indeterminate" context:&GHUIProgressBarSetNeedsDisplayObservationContext];
+ [self removeObserver:self forKeyPath:@"drawTrack"];
+ [self removeObserver:self forKeyPath:@"drawFill"];
+ [self removeObserver:self forKeyPath:@"progress"];
+ [self removeObserver:self forKeyPath:@"indeterminate"];
}
- (void)drawRect:(CGRect)dirtyRect {
Please sign in to comment.
Something went wrong with that request. Please try again.