2002-02-27 14:16:36 +00:00
|
|
|
/* Interface for NSProtocolChecker for GNUStep
|
1998-06-16 13:52:57 +00:00
|
|
|
Copyright (C) 1995 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Mike Kienenberger
|
|
|
|
Date: Jun 1998
|
|
|
|
|
|
|
|
This file is part of the GNUstep Base Library.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Library General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library 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
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Library General Public
|
|
|
|
License along with this library; if not, write to the Free
|
1999-09-09 02:56:20 +00:00
|
|
|
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
|
1998-06-16 13:52:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
|
2002-02-27 14:16:36 +00:00
|
|
|
#include <Foundation/NSObject.h>
|
1998-06-16 13:52:57 +00:00
|
|
|
|
|
|
|
@class Protocol;
|
|
|
|
|
|
|
|
@interface NSProtocolChecker : NSObject
|
|
|
|
{
|
1999-09-16 07:21:34 +00:00
|
|
|
Protocol *_myProtocol;
|
|
|
|
NSObject *_myTarget;
|
1998-06-16 13:52:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Creating a checker
|
|
|
|
|
2004-04-25 07:06:41 +00:00
|
|
|
+ (id) protocolCheckerWithTarget: (NSObject*)anObject
|
|
|
|
protocol: (Protocol*)aProtocol;
|
|
|
|
|
|
|
|
- (id) initWithTarget: (NSObject*)anObject
|
|
|
|
protocol: (Protocol*)aProtocol;
|
1998-06-16 13:52:57 +00:00
|
|
|
|
|
|
|
// Reimplemented NSObject methods
|
|
|
|
|
2004-04-25 07:06:41 +00:00
|
|
|
- (void) forwardInvocation: (NSInvocation*)anInvocation;
|
1998-06-16 13:52:57 +00:00
|
|
|
|
|
|
|
// Getting information
|
2004-04-25 07:06:41 +00:00
|
|
|
- (Protocol*) protocol;
|
|
|
|
- (NSObject*) target;
|
1998-06-16 13:52:57 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
#endif
|