home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / InterfaceBuilder.framework / Versions / A / Headers / IBResourceManager.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-10  |  1.8 KB  |  49 lines

  1. /* InterfaceBuilder - IBResourceManager.h
  2.  * Copyright (c) 1996 NeXT Software, Inc.
  3.  * All rights reserved.
  4.  */
  5.  
  6. #import <InterfaceBuilder/IBDocuments.h>
  7.  
  8. @interface IBResourceManager : NSObject
  9. {
  10.     id <IBDocuments> document;
  11. }
  12. + (void)registerResourceManagerClass:(Class)class;
  13. + (NSArray *)registeredResourceManagerClasses;
  14.  
  15. - (id)initWithDocument:(id <IBDocuments>)document;
  16. - (id <IBDocuments>)document;
  17. - (void)writeToDocumentPath:(NSString *)path;
  18.  
  19. - (NSArray *)resourceFileTypes;
  20. - (NSArray *)resourcePasteboardTypes;
  21. - (BOOL)acceptsResourcesFromPasteboard:(NSPasteboard *)pasteboard;
  22. - (void)addResourcesFromPasteboard:(NSPasteboard *)pasteboard;
  23.  
  24. /* Only sent if file is in IBProjectResourcesFileKey bucket & file extension
  25.  * is one of resource file types.  If you want to track other project
  26.  * changes, you must register for the appropriate notification yourself. */
  27. - (void)project:(id <IBProjects>)project didAddFile:(NSString *)file;
  28. - (void)project:(id <IBProjects>)project didRemoveFile:(NSString *)file;
  29. - (void)project:(id <IBProjects>)project
  30.     didChangeLocalizationOfFile:(NSString *)file;
  31.  
  32. /* Called when an application posts the appropriate notification to IB's DO
  33.  * port.  This is a convenience for the IBApplicationDidChangeFileNotification
  34.  * below.  Only sent if the file extension of the path is one of resource
  35.  * file types. */
  36. - (void)application:(NSString *)applicationName
  37.     didModifyFileAtPath:(NSString *)path;
  38. @end
  39.  
  40. /* Notifications. */
  41.  
  42. /* Notifcation object is the new IBResourceManager class. */
  43. IB_EXTERN NSString *IBResourceManagerRegistryDidChangeNotification;
  44.  
  45. /* Sent when an application posts the appropriate notification to IB's DO
  46.  * port.  Notification object is the name of the application; userInfo
  47.  * contains "Path", the path of the changed file. */
  48. IB_EXTERN NSString *IBApplicationDidChangeFileNotification;
  49.