Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created June 16, 2011 23:54
Show Gist options
  • Save jdewind/1030600 to your computer and use it in GitHub Desktop.
Save jdewind/1030600 to your computer and use it in GitHub Desktop.
@implementation MySlider
@synthesize requestModel;
@synthesize percent;
- (id)init {
if((self = [super init])) {
[requestModel bindProperty:@"percent" onTarget:self toKeyPath:@"percentUploaded"];
}
return self;
}
- (void)dealloc {
[requestModel unBindProperty:@"percent" onTarget:self toKeyPath:@"percentUploaded"];
[requestModel release];
[super dealloc];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment