home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Languages / python / PyObjC-0.47-MIHS / pyobjc-0.47-src / Include / OC_PythonInt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-04  |  1.1 KB  |  47 lines

  1. /* Copyright (c) 1996 by Lele Gaifax.  All Rights Reserved
  2.  *
  3.  * This software may be used and distributed freely for any purpose
  4.  * provided that this notice is included unchanged on any and all
  5.  * copies. The author does not warrant or guarantee this software in
  6.  * any way.
  7.  *
  8.  * This file is part of the PyObjC package.
  9.  *
  10.  * $RCSfile: OC_PythonInt.h,v $
  11.  * $Revision: 1.1.1.2 $
  12.  * $Date: 1996/10/04 20:58:55 $
  13.  *
  14.  * Created Thu Sep  5 20:28:35 1996.
  15.  */
  16.  
  17. #ifndef _OC_PythonInt_H
  18. #define _OC_PythonInt_H
  19.  
  20. #include "OC_PythonObject.h"
  21.  
  22. /*#C This class wraps a PyInt object, making it easier to handle this
  23.   kind of objects from Objective-C. */
  24. @interface OC_PythonInt : OC_PythonObject
  25. {
  26. }
  27.  
  28. //#M Initialize the version number of this class.
  29. + (void) initialize;
  30.  
  31. //#M Returns a new autoreleased PyInt object with @var{i} as contents.
  32. + (id <PythonObject>) fromLong:(long) i;
  33.  
  34. //#M Returns the ``C'' equivalent.
  35. - (long) asLong;
  36.  
  37. @end /* OC_PythonInt class interface */
  38.  
  39.  
  40. #endif /* _OC_PythonInt_H */
  41.  
  42. /*
  43. ** Local Variables:
  44. ** change-log-default-name:"../ChangeLog.PyObjC"
  45. ** End:
  46. */
  47.