Just got my preferences panel to show the defaults, all happy.
However I noticed that for a fraction of a second the values displayed are those created in the XIB, then they are updated with the correct default ones.
I have got round that problem by making the panel invisible at launch, then after setting the colours of the controls, making the panel visible (shown in green (hopefully!):
// set the colours
[colorWell setColor:[PreferenceController preferenceTableBgColor]];
[checkbox setState:[PreferenceController preferenceEmptyDoc]];
[color=#00FF40] // now display!
NSLog(@"Nib file is loaded");
Is that the best way round the issue?
Presumably this won’t happen if I use bindings but I haven’t tried that yet.