This is PrefPanel.m in view mode; [Download] [Up]
/* ** Copyright (C) 1992 Ronin Consulting, Inc. ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; version 1. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the Free Software ** Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #import "PrefPanel.h" #import "Defaults.h" #import <appkit/Application.h> #import <appkit/Window.h> #import <appkit/Button.h> @implementation PrefPanel - init { [super init]; defaults = [Defaults new]; return self; } - setPanel: aPanel { panel = aPanel; [panel setDelegate: self]; return self; } - revert:sender { return self; } - windowDidBecomeKey:sender { return self; } - ok:sender { return self; } - cancel:sender { [[sender window] performClose: sender]; return self; } - save:sender { return self; } - makeKeyAndOrderFront: sender { if(!panel) [NXApp loadNibSection: "PrefPanel.nib" owner: self]; return [panel makeKeyAndOrderFront: sender]; } @end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.