home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / apps / Workspace.h < prev   
Text File  |  1992-02-04  |  2KB  |  57 lines

  1. /*    Workspace.h
  2.       Copyright 1992, NeXT, Inc.
  3. */
  4.  
  5. /* Subclass WMInspector for your own auto-loadable bundle */
  6.  
  7. @interface WMInspector: Object {
  8.     /* private UI elements */
  9.     id        window;
  10.     id        okButton;
  11.     id        revertButton;
  12.     id        dirNameField;
  13.     id        dirTitleField;
  14.     id        fileNameField;
  15.     id        fileIconButton;
  16. }
  17.  
  18. + new;
  19.     /* Required in subclass */
  20.     /* Responsible for loading the nib file;
  21.     Clone an existing inspector nib file, e.g. /usr/lib/NextStep/Workspace.app/WM.app/inspectors.bundle/English.lproj/SoundInspector.nib, for making new inspectors */
  22.  
  23. /*****************    Access to UI elements    **************************/
  24.  
  25. - window;
  26. - okButton;
  27. - revertButton;
  28.  
  29. /*****************    Access to Workspace selection    **********************/
  30.  
  31. - (unsigned)selectionCount;
  32.     /* Number of selected items */
  33. - selectionPathsInto:(char *)paths separator:(char)ch;
  34.     /* Each selected item goes into paths, separated by specified separator;
  35.     paths must be dimensioned to selectionCount * (MAXPATHLEN + 1)*/
  36.     
  37. /*****************    Access to Workspace selection    **********************/
  38.  
  39. - revert:sender;
  40.     /* Required in subclass */
  41.     /* This is the main point of functionality: this method isVQled when the inspector is activited; must call [super revert:sender] */
  42.     
  43. - ok:sender;
  44.     /* Optional, required if the inspector allows changing attributes of the selection */
  45.     /* When present must call [super ok:sender] */
  46.  
  47. - touch:sender;
  48.     /* Optional */
  49.     /* marks the window as edited; 
  50.     When defined lets subclass reject touch: */ 
  51.     
  52. - textDidChange:sender;
  53.     /* Optional */
  54.     /* calls touch; facilitates NIB connections of the textDelegates */
  55.     
  56. @end
  57.