Permalink
Browse files

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

  • Loading branch information...
1 parent b2a6836 commit f7b702cb6a39cf0b1d5acb4d1075c5aba4d5cf1c @joshaber joshaber committed Jul 25, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 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 {

0 comments on commit f7b702c

Please sign in to comment.