home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSInvocation.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  4.1 KB  |  76 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 NSInvocation \
  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/NSInvocation.h \
  32. \fs16 \
  33. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  34. \
  35. \fs28 Creating Invocations \
  36. \fs16 \
  37. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (NSInvocation *)\b invocationWithMethodSignature:\b0 (NSMethodSignature *)\i aSignature\
  38. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0     Returns an invocation object able to construct calls to objects using method selectors with type signatures described by \i aSignature\i0 .\
  39. \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  40. \
  41. \
  42. \fs28 Managing Invocation Arguments\
  43. \fs16 \
  44. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b getArgument:\b0 (void *)\i argumentLocation\i0     Copies the argument stored at \i index\i0  into the storage\
  45. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b atIndex:\b0 (int)\i index    \i0     pointed to by\i  argumentLocation\i0  where 2 is the index of the first argument, 3 is the index of the second, and so on.\
  46. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552     \
  47. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b getReturnValue:\b0 (void *)\i returnLocation\i0     Copies the invocation\'27s return value into the storage pointed to by \i returnLocation\i0 .\
  48. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (NSMethodSignature *)\b methodSignature\b0     Returns the invocation\'27s method signature object.\
  49. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (SEL)\b selector\b0     Returns the invocation\'27s selector.\
  50. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setArgument:\b0 (void *)\i argumentLocation\i0     Sets the argument stored at \i index\i0  to the storage pointed to\
  51. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b atIndex:\b0 (int)\i index\i0         by\i  argumentLocation\i0  where 2 is the index of the first argument, 3 is the index of the second, and so on..\
  52. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (void)\b setReturnValue:\b0 (void *)\i returnLocation\i0     Sets the invocation\'27s return value to that indicated by \i returnLocation\i0 . \
  53. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setSelector:\b0 (SEL)\i aSelector\i0     Sets the invocation\'27s selector to \i aSelector\i0 . \
  54. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setTarget:\b0 (id)\i target\i0     Sets the invocation\'27s target to \i target\i0 . \
  55. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (id)\b target\b0     Returns the invocation\'27s target; returns \b nil\b0  if there is no target.\
  56. \fi-6552 \fi-6552 \fi-6552 \
  57. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  58. \
  59. \
  60. \fs28 Dispatching an Invocation\
  61. \fs16 \
  62. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b invoke\b0     Causes the message encoded in the invocation to be dispatched to its target.\
  63. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b invokeWithTarget:\b0 (id)\i target\i0     Causes the message encoded in the invocation to be dispatched to \i target\i0 .\
  64. \fi-6552 \pard \s0 \li100 \fi0 \ri1007 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  65. \
  66. \fs28 \
  67. \fs16 \
  68. \
  69. \fs28 \pard \s0 \
  70. \li100 \fi0 \fs16 \
  71. \
  72. \fs28 \
  73. \fs16 \
  74. \
  75. \fs28 }
  76.