tclObjc.h
上传用户:shenzhenrh
上传日期:2013-05-12
资源大小:2904k
文件大小:2k
源码类别:

信息检索与抽取

开发平台:

Unix_Linux

  1. /* Interface for Objective-C Tcl interpreter functions
  2.    Copyright (C) 1993,1994  R. Andrew McCallum
  3.    Written by:  R. Andrew McCallum <mccallum@cs.rochester.edu>
  4.    Dept. of Computer Science, U. of Rochester, Rochester, NY  14627
  5.    This file is part of the Tcl/Objective-C interface library.
  6.    This library is free software; you can redistribute it and/or
  7.    modify it under the terms of the GNU Library General Public
  8.    License as published by the Free Software Foundation; either
  9.    version 2 of the License, or (at your option) any later version.
  10.    
  11.    This library is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  14.    Library General Public License for more details.
  15.    You should have received a copy of the GNU Library General Public
  16.    License along with this library; if not, write to the Free
  17.    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */ 
  19. #ifndef _tclObjc_h
  20. #define _tclObjc_h
  21. #include <objc/objc.h>
  22. #include <tcl.h>
  23. #define TCLOBJC_VERSION "1.4"
  24. extern const char tclObjcVersion[];
  25. extern int TclObjc_Init(Tcl_Interp *interp);
  26. #define TCLOBJC_NO_OBJ ((id)-1)
  27. extern char *tclObjc_objectToName(id obj);
  28. extern id tclObjc_nameToObject(const char *name);
  29. extern void 
  30. tclObjc_registerObjectWithName(Tcl_Interp *interp, 
  31.        id object, const char *name);
  32. extern void 
  33. tclObjc_unregisterObjectNamed(Tcl_Interp *interp,
  34.       const char *name);
  35. extern int 
  36. tclObjc_msgSendToClientData(ClientData clientData, 
  37.    Tcl_Interp *interp, int argc, char *argv[]);
  38. int 
  39. tclObjc_msgSendToArgv1(ClientData clientData, Tcl_Interp *interp,
  40.        int argc, char *argv[]);
  41. extern int (*tclObjc_eventHook)();
  42. #undef interface
  43. #ifdef NeXT
  44. @interface TclObject:Object
  45. #else
  46. @interface TclObject
  47. #endif
  48. {
  49. #ifdef GCCLT270
  50.   Class *ISA;
  51. #else
  52.   Class ISA;
  53. #endif
  54.   @public
  55.   Tcl_Interp *_interp;
  56.   char *_tclName;
  57. }
  58. + newName: (char *)objectName;
  59. - performv:(SEL)aSel :(arglist_t)argframe;
  60. - forward: (SEL)aSel : (arglist_t)argframe;
  61. @end
  62. #endif /* _tclObjc_h */