home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2 / Openstep-4.2-Intel-Developer.iso / NextLibrary / Frameworks / InterfaceBuilder.framework / Versions / A / Headers / IBProjects.h < prev    next >
Encoding:
Text File  |  1996-09-10  |  2.1 KB  |  63 lines

  1. /* InterfaceBuilder - IBProjects.h
  2.  * Copyright (c) 1996 NeXT Software, Inc.
  3.  * All rights reserved.
  4.  */
  5.  
  6. #import <Foundation/Foundation.h>
  7. #import <InterfaceBuilder/IBSystem.h>
  8.  
  9. @protocol IBProjects <NSObject>
  10.  
  11. /* Returns the name of the project. */
  12. - (NSString *)projectName;
  13.  
  14. /* Returns the directory for the project. */
  15. - (NSString *)projectDirectory;
  16.  
  17. /* Returns the localization directory for the project. */
  18. - (NSString *)languageDirectory;
  19.  
  20. /* Returns the full path to `file' in the project. */
  21. - (NSString *)pathForFile:(NSString *)file;
  22.  
  23. /* Returns the project immediately above this project in the project
  24.  * hierarchy.  Returns nil if this project is the root project. */
  25. - (id <IBProjects>)superproject;
  26.  
  27. /* Returns an array of objects conforming to the IBProjects protocol
  28.  * of the subprojects of this project. */
  29. - (NSArray *)subprojects;
  30.  
  31. /* Returns the project at the top of the project hierarchy for this
  32.  * project.  Returns self if this project is the root project. */
  33. - (id <IBProjects>)rootProject;
  34.  
  35. /* Returns YES if self is a subproject of `otherProject'. */
  36. - (BOOL)isDescendantOfProject:(id <IBProjects>)otherProject;
  37.  
  38. /* Returns YES if self is a superproject of `otherProject'. */
  39. - (BOOL)isAncestorOfProject:(id <IBProjects>)otherProject;
  40.  
  41. /* Returns the files associated with `fileKey'. */
  42. - (NSArray *)filesForKey:(NSString *)fileKey;
  43.  
  44. /* Returns YES if `file' is one of the files associated with `fileKey'. */
  45. - (BOOL)containsFile:(NSString *)file forKey:(NSString *)fileKey;
  46.  
  47. /* Returns YES if `file' is localized (i.e., if it's in the language
  48.  * directory for the project); NO otherwise. */
  49. - (BOOL)fileIsLocalized:(NSString *)file;
  50.  
  51. @end
  52.  
  53. IB_EXTERN NSString *IBProjectSourcesFileKey;
  54. IB_EXTERN NSString *IBProjectHeadersFileKey;
  55. IB_EXTERN NSString *IBProjectInterfacesFileKey;
  56. IB_EXTERN NSString *IBProjectResourcesFileKey;
  57. IB_EXTERN NSString *IBProjectSubprojectsFileKey;
  58. IB_EXTERN NSString *IBProjectContextHelpFilesFileKey;
  59. IB_EXTERN NSString *IBProjectDocumentationFilesFileKey;
  60. IB_EXTERN NSString *IBProjectLibrariesFileKey;
  61. IB_EXTERN NSString *IBProjectFrameworksFileKey;
  62. IB_EXTERN NSString *IBProjectSupportingFilesFileKey;
  63.