//
//  SettingsController.m
//  Axis
//
//  Created by Olivier Savard on 10-03-10.
//  Copyright 2010 OSInfo Informatique. All rights reserved.
//

#import "SettingsController.h"


@implementation SettingsController
@synthesize slider;


- (void)viewDidLoad {
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
	slider.value = [defaults floatForKey:@"nbrLignes"];
	[super viewDidLoad];
}

-(void)viewWillDisappear:(BOOL)animated {
	NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
	[defaults setFloat:slider.value forKey:@"nbrLignes"];
	[super viewWillDisappear:animated];
}


- (void)didReceiveMemoryWarning {
	// Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
	
	// Release any cached data, images, etc that aren't in use.
}

- (void)viewDidUnload {
	// Release any retained subviews of the main view.
	// e.g. self.myOutlet = nil;
	self.slider =nil;
}


- (void)dealloc {
	[slider release];
    [super dealloc];
}


@end
