home *** CD-ROM | disk | FTP | other *** search
/ Altsys Virtuoso 2.0K / virtuoso_20k.iso / NeXTanswers / OpenStepSpec_rtf / ApplicationKit / Classes / NSOpenPanel.rtf < prev    next >
Encoding:
Text File  |  1994-07-01  |  4.0 KB  |  75 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 NSOpenPanel \
  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 NSSavePanel : NSPanel : NSWindow : NSResponder : NSObject \
  27. \fs16 \
  28. \fs28 \s3 \fs16 \fs28 \f0 \b \fs28 Declared In:    \b0 \fs28 \f1 appkit/NSOpenPanel.h \
  29. \fs16 \
  30. \fs28 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs28 \fs16 \
  31. \
  32. \fs28 Creating and Initializing an OpenPanel \
  33. \fs16 \
  34. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 + (NSOpenPanel *)\b openPanel\b0     Returns an OpenPanel object having default initialization.\
  35. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  36. \
  37. \
  38. \fs28 Filtering Files \
  39. \fs16 \
  40. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (BOOL)\b allowsMultipleSelection    \b0 Returns YES if the panel allows the user to open multiple files (and directories) at a time.\
  41. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b canChooseDirectories    \b0 Returns YES if the panel allows the user to choose directories.\
  42. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (BOOL)\b canChooseFiles    \b0 Returns YES if the panel allows the user to choose files.\
  43. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setAllowsMultipleSelection:\b0 (BOOL)\i flag\i0     Sets whether the user can open multiple files (and directories) at a time.\
  44. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setCanChooseDirectories:\b0 (BOOL)\i flag    \i0 Sets whether the user can choose directories.\
  45. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (void)\b setCanChooseFiles:\b0 (BOOL)\i flag    \i0 Sets whether the user can choose files.\
  46. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  47. \
  48. \
  49. \fs28 Querying the Chosen Files \
  50. \fs16 \
  51. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (NSArray *)\b filenames\b0     Returns an array containing the names of the selected files and directories.\
  52. \fi-6552 \pard \s8 \li100 \fi0 \ri1007 \ql \f0 \b \fs16 \
  53. \
  54. \
  55. \fs28 Running the OpenPanel \
  56. \fs16 \
  57. \fs28 \pard \s4 \li7029 \fi-6552 \ri1007 \ql \tx6652 \tx7030 \f1 \b0 \fi-6552 {\f3 -} (int)\b runModalForTypes:\b0 (NSArray *)\i fileTypes\i0     Invokes the \b runModalForDirectory:file:types:\b0  method, using the last directory from which a file was chosen as the path argument.  Returns the value returned by that method.\
  58. \fi-6552 \fi-6552 \fi-6552 {\f3 -} (int)\b runModalForDirectory:\b0 (NSString *)\i path\i0     Displays the panel and begins its event loop.  The panel\
  59. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796 \b file:\b0 (NSString *)\i filename\i0         displays the files in \i path\i0  that match the types in\
  60. \b types:\b0 (NSArray *)\i fileTypes\i0         \i fileTypes\i0 , with \i filename\i0  selected.  Returns NSOKButton (if the user clicks the OK button) or NSCancelButton (if the user clicks the Cancel button).\
  61. \s4 \li7029 \fi-5794 \fi-6552 \fi-6552 {\f3 -} (int)\b runModalForTypes:\b0 (NSArray *)\i fileTypes\i0     Invokes \b runModalForDirectory:file:types:\b0  using the last\
  62. \fi-6552 \s5 \li7030 \fi-6553 \fi-5796         directory from which a file was chosen as the \i path\i0  argument.\
  63. \pard \s0 \li100 \fi0 \tx478 \tx856 \tx1234 \fs16 \
  64. \
  65. \fs28 \
  66. \fs16 \
  67. \
  68. \fs28 \ri1007 \fs28 \fs16 \fs28 \
  69. \fs16 \
  70. \
  71. \fs28 \fs16 \fs28 \
  72. \fs16 \
  73. \
  74. \fs28 }
  75.