home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / FoundationKit / Classes / NSTimer.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  5.2 KB  |  91 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 NSTimer \
  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/NSTimer.h \
  32. \fs16 \
  33. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  34. \
  35. \fs28 Creating a Timer Object \
  36. \fs16 \
  37. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (void)\b scheduleTimerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  38. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b invocation:\b0 (NSInvocation *)\i anInvocation\i0     Invokes \b timerWithTimeInterval:invocation:repeats:\b0  \
  39. \b repeats:\b0 (BOOL)\i repeats\i0         and registers the new timer object with the current run\
  40.          loop object in the default mode.\
  41. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (void)\b scheduleTimerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  42. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b target:\b0 (id)\i anObject\i0     Invokes \b \fs24 timerWithTimeInterval:target:selector:repeats:\fs28  \
  43. \b0 \b selector:\b0 (SEL)\i aSelector\i0         and registers the new timer object with the current run  \
  44. \b repeats:\b0 (BOOL)\i repeats\i0          loop object in the default mode.\
  45. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (void)\b scheduleTimerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  46. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b target:\b0 (id)\i anObject\i0     Invokes  \b \fs24 timerWithTimeInterval:target:selector:withObject:\b0 \fs28  \
  47. \b selector:\b0 (SEL)\i aSelector\i0         and registers the new timer object with the current run \
  48. \b withObject:\b0 (id)\i anArgument\i0          loop object in the default mode.\
  49. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (NSTimer *)\b timerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  50. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b target:\b0 (id)\i anObject\i0     Creates and returns a timer object suitable for registry with \
  51. \b selector:\b0 (SEL)\i aSelector\i0         an NSRunLoop object.  The timer object records a \
  52. \b withObject:\b0 (id)\i anArgument\i0          message (\i aSelector\i0 ), a target object (\i anObject\i0 ), and an argument (\i anArgument\i0 ).\
  53. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (NSTimer *)\b timerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  54. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b target:\b0 (id)\i anObject\i0     Creates and returns a timer object suitable for registry with \
  55. \b selector:\b0 (SEL)\i aSelector\i0         an NSRunLoop object.  The timer object records a \
  56. \b repeats:\b0 (BOOL)\i repeats\i0          message (\i aSelector\i0 ), a target object (\i anObject\i0 ), and an interval (\i seconds\i0 ) at which the message is to be sent to the target.  If \i repeats\i0  is YES, the timer object will repeatedly reschedule itself to fire \i seconds\i0  seconds from the last fire date.\
  57. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 + (NSTimer *)\b timerWithTimeInterval:\b0 (NSTimeInterval)\i seconds\
  58. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \i0 \b invocation:\b0 (NSInvocation *)\i anInvocation\i0     Creates and returns a timer object suitable for registry with \
  59. \b repeats:\b0 (BOOL)\i repeats\i0         an NSRunLoop object.  The timer object records an\
  60.          invocation (\i anInvocation\i0 ) and an interval (\i seconds\i0 ) at which the message is to be sent to the target.  If \i repeats\i0  is YES, the timer object will repeatedly reschedule itself to fire \i seconds\i0  seconds from the last fire date.\
  61. \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  62. \
  63. \
  64. \fs28 Firing the Timer \
  65. \fs16 \
  66. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b fire\b0     Causes the timer\'27s message to be dispatched to its target.\
  67. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  68. \
  69. \
  70. \fs28 Stopping the Timer \
  71. \fs16 \
  72. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (void)\b invalidate\b0     Stops the timer from ever firing again.\
  73. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  74. \
  75. \
  76. \fs28 Getting the Fire Date\
  77. \fs16 \
  78. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSDate *)\b fireDate\b0     Returns the date that the timer will next fire.\
  79. \fi-6552 \pard \s0 \li100 \fi0 \ri1007 \tx478 \tx856 \tx1234 \fs28 \fs16 \
  80. \
  81. \fs28 \
  82. \fs16 \
  83. \
  84. \fs28 \pard \s0 \
  85. \li100 \fi0 \fs16 \
  86. \
  87. \fs28 \
  88. \fs16 \
  89. \
  90. \fs28 }
  91.