home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / NIInterface.framework / Versions / A / Headers / NIOpenPanel.h < prev   
Text File  |  1995-07-28  |  1KB  |  68 lines

  1. /*
  2.     NIOpenPanel.h
  3.     NetInfo Kit
  4.     Copyright (c) 1994, NeXT Computer, Inc.
  5.     All rights reserved.
  6.  */
  7.  
  8. #import <NIInterface/NIDomainPanel.h>
  9. #import <NIAccess/NIDirectory.h>
  10.  
  11. @interface NIOpenPanel : NIDomainPanel
  12. {
  13.     id directoryPicker;
  14.     id directoryText;
  15.     id directoryTitle;
  16.     NSString *parentPath;
  17.     NSString *directoryKey;
  18. }
  19.  
  20. /* 
  21.  * Class Methods
  22.  */
  23. + (NIOpenPanel *)openPanel;
  24.  
  25. /*
  26.  * Panel controls
  27.  */
  28. - (void)setAllowsMultipleDirectorySelection:(BOOL)flag;
  29. - (BOOL)allowsMultipleDirectorySelection;
  30. - (unsigned)numberOfDirectoriesSelected;
  31. - (void)setDirectoryTitle:(NSString *)title;
  32.  
  33. /*
  34.  * Set the key for directory values displayed in the directory picker.
  35.  * The default is the first value for the key "name".
  36.  */
  37. - (void)setDirectoryKey:(NSString *)key;
  38.  
  39. /*
  40.  * Set the start directory.
  41.  */
  42. - (void)setStartingDirectory:(NIDirectory *)aDir;
  43. - (void)setStartingDirectoryName:(NSString *)path;
  44.  
  45. /*
  46.  * Get user-selected directory.
  47.  */
  48. - (NIDirectory *)directory;
  49. - (NSString *)directoryName;
  50.  
  51. /*
  52.  * Get user-selected directories if multiple selection is enabled
  53.  */
  54. - (NSArray *)directories;
  55. - (NSArray *)directoryNames;
  56.  
  57. /* 
  58.  * NSBrowser delagate methods
  59.  */
  60. - (void)browser:(NSBrowser *)sender
  61.     createRowsForColumn:(int)column
  62.     inMatrix:(NSMatrix *)matrix;
  63.  
  64. - selectItem:sender;
  65. - selectDirectory:sender;
  66.  
  67. @end
  68.