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
|
2007-09-14 11:36:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
1998-06-16 13:52:57 +00:00
|
|
|
License as published by the Free Software Foundation; either
|
2008-06-08 10:38:33 +00:00
|
|
|
version 2 of the License, or (at your option) any later version.
|
1998-06-16 13:52:57 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2007-09-14 11:36:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
1998-06-16 13:52:57 +00:00
|
|
|
License along with this library; if not, write to the Free
|
2006-10-31 07:05:46 +00:00
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02111 USA.
|
1998-06-16 13:52:57 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
|
|
|
|
#define __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
|
2006-10-31 07:05:46 +00:00
|
|
|
#import <GNUstepBase/GSVersionMacros.h>
|
1998-06-16 13:52:57 +00:00
|
|
|
|
2006-10-31 07:05:46 +00:00
|
|
|
#import <Foundation/NSObject.h>
|
|
|
|
#import <Foundation/NSProxy.h>
|
1998-06-16 13:52:57 +00:00
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
1998-06-16 13:52:57 +00:00
|
|
|
@class Protocol;
|
|
|
|
|
2004-04-25 07:40:19 +00:00
|
|
|
@interface NSProtocolChecker : NSProxy
|
1998-06-16 13:52:57 +00:00
|
|
|
{
|
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
|
|
|
|
|
2006-09-13 10:20:49 +00:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
1998-06-16 13:52:57 +00:00
|
|
|
#endif
|