~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Headers/gnustep/base/NSProtocolChecker.h

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Interface for NSProtocolChecker for GNUStep
2
 
   Copyright (C) 1995 Free Software Foundation, Inc.
3
 
 
4
 
   Written by:  Mike Kienenberger
5
 
   Date: Jun 1998
6
 
   
7
 
   This file is part of the GNUstep Base Library.
8
 
 
9
 
   This library is free software; you can redistribute it and/or
10
 
   modify it under the terms of the GNU Library General Public
11
 
   License as published by the Free Software Foundation; either
12
 
   version 2 of the License, or (at your option) any later version.
13
 
   
14
 
   This library is distributed in the hope that it will be useful,
15
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
   Library General Public License for more details.
18
 
   
19
 
   You should have received a copy of the GNU Library General Public
20
 
   License along with this library; if not, write to the Free
21
 
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
22
 
   */ 
23
 
 
24
 
#ifndef __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
25
 
#define __NSProtocolChecker_h_GNUSTEP_BASE_INCLUDE
26
 
 
27
 
#include <Foundation/NSObject.h>
28
 
 
29
 
@class Protocol;
30
 
 
31
 
@interface NSProtocolChecker : NSObject
32
 
{
33
 
  Protocol *_myProtocol;
34
 
  NSObject *_myTarget;
35
 
}
36
 
 
37
 
// Creating a checker
38
 
 
39
 
+ (id) protocolCheckerWithTarget: (NSObject *)anObject
40
 
                        protocol: (Protocol *)aProtocol;
41
 
- (id) initWithTarget: (NSObject *)anObject protocol: (Protocol *)aProtocol;
42
 
 
43
 
// Reimplemented NSObject methods
44
 
 
45
 
- (void)forwardInvocation: (NSInvocation *)anInvocation;
46
 
- (struct objc_method_description *) methodDescriptionForSelector: (SEL)aSelector;
47
 
   
48
 
// Getting information
49
 
- (Protocol *) protocol;
50
 
- (NSObject *) target;
51
 
 
52
 
@end
53
 
 
54
 
#endif