Follow-up Comment #2, bug #20884 (project gnustep):
Regarding the last known good state, as I said, I can't be more precise
because I was on vacation. The only thing I can say is that till one month ago
it surely worked as expected.
The checkbox is in an old gorm file of the GWorkspace preferences, that is,
GWorkspace/Resources/English.lproj/IconsPref.gorm, but all the gorm files that
use checkbox NSButtons are affected.
The full code hasn't anything different from the example I've already posted
but... here it is:
- (IBAction)setUnsetThumbnails:(id)sender
{
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
int state = [sender state];
[defaults setBool: ((state == NSOnState) ? YES : NO)
forKey: @"usesthumbnails"];
[defaults synchronize];
[gw setUsesThumbnails: (state == NSOnState)];
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20884>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep