/* AtomInspector.m * * This subclass of MiscInspectorWrapper inspects Atoms. * * For interface-info see the header file. The comments in this file mostly * cover only the real implementation details. * * Written by: Thomas Engel * Created: 18.12.1993 (Copyleft) * Last modified: 08.02.1994 * Copyright (C) 1995 Thomas Engel. */ #import "AtomInspector.h" #import "../../Atom.h" @implementation AtomInspector - (BOOL)doesHandleSelection { // If it's a single Atom we will do it and load our NIB if there are // no controllers yet. if( [self selectionCount] == 1 && [[self selection] isMemberOf:[Atom class]] ) { if( !controllers ) { if( [NXApp loadNibSection:"AtomInspector.nib" owner:self] == nil ) NXRunAlertPanel( NULL, "Couldn't load AtomInspector.nib", "OK", NULL, NULL ); } return YES; } return NO; } @end /* * History: 08.02.94 MiscInspector stuff conform. * * 08.01.94 Changed to work with our new swapControllers. * * 18.12.93 My first subclass of InspectorManager * * * Bugs: unknown */