Once more we can jump right in and start writing the program code for this method as follows:
Start by putting a comment in the
NewDefaults.m
file that describes the method in plain English as follows:/* The didSelect delegate method is called whenever the Preference Pane is displayed, even if the System Preferences were not quit and relaunched */
The method needs to match the interface from the
NSPreferencePane.h
file because it is a delegate method defined in that file as follows:- (void) didSelect { }
Using the
readDefaults:forKey:
method get the current value for the Finder's hidden files key as anNSString
object:// Read the current setting for // Showing Hidden files in he Finder NSString *l_showHiddenFile = [self readDefaults: D_DOMAIN_FINDER forKey:kHiddenFileKey];
Using the
readDefaults:forKey:
method gets the current value for the Docks springboard hide and springboard show keys asNSString
objects as...