This is SecondPreference.m in view mode; [Download] [Up]
//***************************************************************************** // // SecondPreference.m. // // Preferences logic. // // by Felipe A. Rodriguez // // This code is supplied "as is" the author makes no warranty as to its // suitability for any purpose. This code is free and may be distributed // in accordance with the terms of the: // // GNU GENERAL PUBLIC LICENSE // Version 2, June 1991 // copyright (C) 1989, 1991 Free Software Foundation, Inc. // 675 Mass Ave, Cambridge, MA 02139, USA // //***************************************************************************** #import "../SwapView.h" #import "SecondPreference.h" #import "SecondPanelController.h" #define BUTTONPOSITION 1 @implementation SecondPreference //***************************************************************************** // // recieved immediately after class is dynamically loaded // //***************************************************************************** + finishLoading:(struct mach_header *)header { [self poseAs:[self superclass]]; return self; } //***************************************************************************** // // sent to us after nib objects are unarchived and init'd // //***************************************************************************** - awakeFromNib { [super awakeFromNib]; return [super addInspector:"Defaults" atPosition:BUTTONPOSITION withSelector:@selector(displaySecond:)]; } //***************************************************************************** // // swap preferences subviews, dynamically load ours if necessary // //***************************************************************************** - displaySecond:sender { [self loadPreference:"SecondPanelController" ofClass:[SecondPanelController class] buttonMatrix:sender]; return self; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.