This is PMArticleList.m in view mode; [Download] [Up]
#import "PMCompose.h" #import "preferences.h" @implementation PreferencesManager(ArticleList) //----------------------------------------------------------- // ARTICLE LIST //----------------------------------------------------------- - readArticleListPrefs; { [lShowSubject setState:[NXApp defaultBoolValue:DEFAULT_SHOW_SUBJECT]]; [lShowAuthor setState:[NXApp defaultBoolValue:DEFAULT_SHOW_AUTHOR]]; [lShowSize setState:[NXApp defaultBoolValue:DEFAULT_SHOW_SIZE]]; [lSmallIs setIntValue:[NXApp defaultIntValue:DEFAULT_SMALL_ARTICLE]]; [lLargeIs setIntValue:[NXApp defaultIntValue:DEFAULT_LARGE_ARTICLE]]; return self; } - writeArticleListPrefs; { [NXApp setDefault:DEFAULT_SHOW_SUBJECT toBool:[lShowSubject state]]; [NXApp setDefault:DEFAULT_SHOW_AUTHOR toBool:[lShowAuthor state]]; [NXApp setDefault:DEFAULT_SHOW_SIZE toBool:[lShowSize state]]; [NXApp setDefault:DEFAULT_SMALL_ARTICLE toInt:[lSmallIs intValue]]; [NXApp setDefault:DEFAULT_LARGE_ARTICLE toInt:[lLargeIs intValue]]; return self; } //----------------------------------------------------------- // THAT'S IT //----------------------------------------------------------- @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.