advertisement

Article:
  Mac OS X's Preferences System (and More!)
Subject:   issue with automatically hide scrollers
Date:   2005-02-06 18:04:52
From:   cmyk
prefs = [[NSUserDefaults standardUserDefaults] retain];

if ( [prefs objectForKey:@"Adress"] != nil ) {
records = [[NSMutableArray alloc] initWithArray:[prefs objectForKey:@"Adress"]];
[tableView reloadData]; //if not reloaded, automatically hiding scrollers won't show if they should
} else {
records = [[NSMutableArray alloc] init];
}