1999-12-08 15:04:57 +00:00
|
|
|
/* IBInspector.m
|
|
|
|
*
|
2003-05-23 02:25:34 +00:00
|
|
|
* Copyright (C) 2003 Free Software Foundation, Inc.
|
1999-12-08 15:04:57 +00:00
|
|
|
*
|
2003-05-23 02:25:34 +00:00
|
|
|
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
|
|
|
* Date: 2003
|
1999-12-08 15:04:57 +00:00
|
|
|
*
|
|
|
|
* This file is part of GNUstep.
|
|
|
|
*
|
|
|
|
* 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; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2003-05-23 02:25:34 +00:00
|
|
|
#include <InterfaceBuilder/IBInspector.h>
|
|
|
|
#include <Foundation/NSString.h>
|
|
|
|
#include <Foundation/NSNotification.h>
|
|
|
|
#include <AppKit/NSWindow.h>
|
1999-12-08 15:04:57 +00:00
|
|
|
|
|
|
|
@implementation IBInspector
|
|
|
|
|
|
|
|
- (void) dealloc
|
|
|
|
{
|
2002-03-06 11:43:38 +00:00
|
|
|
[[NSNotificationCenter defaultCenter] removeObserver: self];
|
1999-12-08 15:19:11 +00:00
|
|
|
RELEASE(object);
|
1999-12-08 15:04:57 +00:00
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
1999-12-21 11:38:49 +00:00
|
|
|
- (NSView*) initialFirstResponder
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
1999-12-08 15:04:57 +00:00
|
|
|
- (id) object
|
|
|
|
{
|
|
|
|
return object;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) ok: sender
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSButton*) okButton
|
|
|
|
{
|
|
|
|
return okButton;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) revert: (id)sender
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSButton*) revertButton
|
|
|
|
{
|
|
|
|
return revertButton;
|
|
|
|
}
|
|
|
|
|
1999-12-21 08:13:35 +00:00
|
|
|
- (void) setObject: (id)anObject
|
|
|
|
{
|
2000-01-03 11:00:14 +00:00
|
|
|
ASSIGN(object, anObject);
|
1999-12-21 08:13:35 +00:00
|
|
|
}
|
|
|
|
|
1999-12-21 11:38:49 +00:00
|
|
|
- (void) textDidBeginEditing: (NSNotification*)aNotification
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
1999-12-08 15:04:57 +00:00
|
|
|
- (void) touch: (id)sender
|
|
|
|
{
|
1999-12-08 15:19:11 +00:00
|
|
|
[window setDocumentEdited: YES];
|
1999-12-08 15:04:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
- (BOOL) wantsButtons
|
|
|
|
{
|
|
|
|
return NO;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSWindow*) window
|
|
|
|
{
|
|
|
|
return window;
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|