File: tclObjc.h.in

package info (click to toggle)
libtclobjc 1.3-0
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 316 kB
  • ctags: 77
  • sloc: objc: 2,108; makefile: 237; ansic: 186; sh: 174; tcl: 13
file content (75 lines) | stat: -rw-r--r-- 2,130 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/* Interface for Objective-C Tcl interpreter functions
   Copyright (C) 1993,1994  R. Andrew McCallum

   Written by:  R. Andrew McCallum <mccallum@cs.rochester.edu>
   Dept. of Computer Science, U. of Rochester, Rochester, NY  14627

   This file is part of the Tcl/Objective-C interface 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
   Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/ 

#ifndef _tclObjc_h
#define _tclObjc_h

#include <objc/objc.h>
#include <tcl.h>

#define TCLOBJC_VERSION "1.3"
extern const char tclObjcVersion[];

extern int TclObjc_Init(Tcl_Interp *interp);

#define TCLOBJC_NO_OBJ ((id)-1)

extern char *tclObjc_objectToName(id obj);
extern id tclObjc_nameToObject(const char *name);
extern void 
tclObjc_registerObjectWithName(Tcl_Interp *interp, 
			       id object, const char *name);
extern void 
tclObjc_unregisterObjectNamed(Tcl_Interp *interp,
			      const char *name);
extern int 
tclObjc_msgSendToClientData(ClientData clientData, 
			   Tcl_Interp *interp, int argc, char *argv[]);
int 
tclObjc_msgSendToArgv1(ClientData clientData, Tcl_Interp *interp,
		       int argc, char *argv[]);

extern int (*tclObjc_eventHook)();

#ifdef NeXT
@interface TclObject:Object
#else
@interface TclObject
#endif
{
#ifdef GCCLT270
  Class *ISA;
#else
  Class ISA;
#endif
  @public
  Tcl_Interp *_interp;
  char *_tclName;
}
+ newName: (char *)objectName;
- performv:(SEL)aSel :(arglist_t)argframe;
- forward: (SEL)aSel : (arglist_t)argframe;
@end

#endif /* _tclObjc_h */