home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSMethodSignature.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  3.5 KB  |  63 lines

  1. {\rtf0\ansi\paperw16228 \paperh18648 \margl-907 \margr0 \margt0 \margb0 {\fonttbl\f0\fswiss Helvetica;\f1\froman Times;\f2\fmodern Courier;\f3\ftech Symbol;\f4\froman Palatino;}
  2. {\stylesheet{\s0 \li100 \fi0 \ri1007 \ql   1Head;}
  3. {\s1 \li100 \fi0 \ri1007 \ql   ClassName;}
  4. {\s2 \li2872 \fi-2771 \ri1007 \ql \tx2872   ConformsTo;}
  5. {\s3 \li2872 \fi-2771 \ri1007 \ql   DeclaredIn;}
  6. {\s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030   Description;}
  7. {\s5 \li7030 \fi-5796 \ri1007 \ql   DescriptionPart;}
  8. {\s6 \li0 \fi0 \ri0 \ql \tx-25 \tx8290 \tx9172   Footer;}
  9. {\s7 \li2872 \fi-2771 \ri1007 \ql \tx2872   InheritsFrom;}
  10. {\s8 \li100 \fi0 \ri1007 \ql   Summary;}
  11. }
  12. \li0 \fi0 \ri0 \ql \sb0 \f1 \fs24 
  13. (Preliminary Documentation) Copyright \f3 \'e3\f1 1994 by NeXT Computer, Inc.  All Rights Reserved.\
  14. \
  15. \s0 \li100 \fi0 \ri1007 \ql \f0 \b \fs36 \fs16 \
  16. \
  17. \
  18. \
  19. \
  20. \
  21. \
  22. \fs36 NSMethodSignature \
  23. \pard \s7 \li2872 \fi-2771 \ri1007 \ql \tx2872 \f1 \b0 \fs28 \fs16 \
  24. \
  25. \
  26. \fs28 \f0 \b \fs28 Inherits From:    \b0 \fs28 \f1 NSObject \
  27. \fs16 \
  28. \fs28 \s2 \fs16 \fs28 \f0 \b \fs28 Conforms To:    \b0 \fs28 \f1 NSCoding\
  29. \fi0 NSObject  \
  30. \fs16 \
  31. \fs28 \s3 \fi-2771 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 foundation/NSMethodSignature.h \
  32. \fs16 \
  33. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  34. \
  35. \fs28 Creating a Method Signature\
  36. \fs16 \
  37. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (NSMethodSignature *)\b signatureWithObjCTypes:\b0 (const char *)\i types\
  38. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0     Creates a method signature object given \i types\i0 , a string encoding the method return and argument types.  The characters of the encoding are accessible through the root class\'27s \b descriptionForInstanceMethod:\b0  or similar methods. \
  39. \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  40. \
  41. \
  42. \fs28 Querying a Method Signature\
  43. \fs16 \
  44. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSArgumentInfo)\b argumentInfoAtIndex:\b0 (unsigned)\i index\
  45. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0     Returns information about the argument at \i index\i0 .  Indices begin with 0.  The \'aahidden\'ba arguments \b self\b0  and \b _cmd\b0  are indexed at 0 and 1; method-specific arguments begin at index 2.  If \i index\i0  is too large for the actual number of arguments, a NSInvalidArgumentException exception is raised.\
  46. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (unsigned)\b frameLength\b0     Returns the number of bytes that the arguments, taken together, would occupy on the stack. \
  47. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b isOneway\b0     Returns YES if the method is asynchronous (that is, it returns without waiting for the receiver to finish processing it), and NO otherwise.\
  48. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (unsigned)\b methodReturnLength\b0     Returns the number of bytes required by the return value.\
  49. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (char *)\b methodReturnType\b0     Returns a string encoding the return type of the method.   (What the characters in the string represent is usually defined by some implementation-dependent runtime types.)\
  50. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (unsigned)\b numberOfArguments\b0     Returns the number of arguments recorded  in the receiver.  This will be at least two, since it includes the \'aahidden\'ba arguments, \b self\b0  and \b _cmd\b0 , which are the first two arguments passed to every method implementation.\
  51. \fi-6552 \pard \s0 \li100 \fi0 \ri1007 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  52. \
  53. \fs28 \
  54. \fs16 \
  55. \
  56. \fs28 \pard \s0 \
  57. \li100 \fi0 \fs16 \
  58. \
  59. \fs28 \
  60. \fs16 \
  61. \
  62. \fs28 }
  63.