mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
* GormLib/IBObjectAdditions.m: Remove duplicate method implementations from here to fix issues on Darwin. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@26955 72102866-910b-0410-8b05-ffd578937521
68 lines
1.7 KiB
Objective-C
68 lines
1.7 KiB
Objective-C
/* IBObjectAdditions.m
|
|
*
|
|
* Copyright (C) 2003 Free Software Foundation, Inc.
|
|
*
|
|
* Author: Gregory John Casamento <greg_casamento@yahoo.com>
|
|
* Date: 2003
|
|
*
|
|
* 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 3 of the License, or
|
|
* (at your option) any later version.
|
|
* g
|
|
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
|
|
*/
|
|
|
|
#include <Foundation/NSObject.h>
|
|
#include <Foundation/NSObjCRuntime.h>
|
|
#include <InterfaceBuilder/IBObjectAdditions.h>
|
|
|
|
// object additions -- object adopts protocol
|
|
@implementation NSObject (IBObjectAdditions)
|
|
/**
|
|
This method is called on all objects after
|
|
they are loaded into the IBDocuments object.
|
|
*/
|
|
- (void)awakeFromDocument: (id <IBDocuments>)doc
|
|
{
|
|
// does nothing...
|
|
}
|
|
|
|
/**
|
|
Name for the reciever in the name table.
|
|
*/
|
|
- (NSString *)nibLabel: (NSString *)objectName
|
|
{
|
|
NSString *label = [NSString stringWithFormat: @"%@(%@)",
|
|
[self className],
|
|
objectName];
|
|
return label;
|
|
}
|
|
|
|
/**
|
|
Title to display in the inspector.
|
|
*/
|
|
- (NSString *)objectNameForInspectorTitle
|
|
{
|
|
return [self className];
|
|
}
|
|
|
|
/**
|
|
Lists all properties if this object not compatible with IB.
|
|
*/
|
|
- (NSArray*) ibIncompatibleProperties
|
|
{
|
|
return nil;
|
|
}
|
|
|
|
@end
|
|
|