# IBResourceManager class documentation

### Authors

Generated by heron

### Contents -

1. Software documentation for the IBResourceManager class
2. IBResourceManager variables

# Software documentation for the IBResourceManager class

## IBResourceManager : NSObject

> Declared in:
>   InterfaceBuilder/IBResourceManager.h

Description forthcoming.

Instance Variables
Method summary

- +registerResourceManagerClass:
- +registerResourceManagerClass:forFrameworks:
- +registeredResourceManagerClassesForFramework:
- -acceptsResourcesFromPasteboard:
- -addResources:
- -addResourcesFromPasteboard:
- -application:didModifyFileAtPath:
- -document
- -initWithDocument:
- -isReadOnly
- -project:didAddFile:
- -project:didChangeLocalizationOfFile:
- -project:didRemoveFile:
- -resourceFileTypes
- -resourcePasteboardTypes
- -resourcesForObjects:
- -writeToDocumentPath:

### registerResourceManagerClass:

+ (void) registerResourceManagerClass: (Class)managerClass;
Register the given class as a resource mananger.

### registerResourceManagerClass: forFrameworks:

+ (void) registerResourceManagerClass: (Class)managerClass forFrameworks: (NSArray*)frameworks;
Register the given class as a resource manager for the frameworks in the array.

### registeredResourceManagerClassesForFramework:

+ (NSArray*) registeredResourceManagerClassesForFramework: (NSString*)framework;
Return an array of classes for the given framework.

### acceptsResourcesFromPasteboard:

- (BOOL) acceptsResourcesFromPasteboard: (NSPasteboard*)pboard;
Returns `YES`, if the pasteboard contains a type the resource manager can accept.

### addResources:

- (void) addResources: (NSArray*)resourceList;
Add a resource.

### addResourcesFromPasteboard:

- (void) addResourcesFromPasteboard: (NSPasteboard*)pboard;
Add resoures from the pasteboard. Invokes the acceptsResourcesFromPasteboard: method to determine if the resources will be added.

### application: didModifyFileAtPath:

- (void) application: (NSString*)appName didModifyFileAtPath: (NSString*)path;
Called by an external application when a file owned by the GUI builder is modified.

### document

- (id<IBDocuments>) document;
Returns the document with which this resource manager is associated.

### initWithDocument:

- (id) initWithDocument: (id<IBDocuments>)doc;
Instantiate the resource manager with the given document object.

### isReadOnly

- (BOOL) isReadOnly;
Returns `YES`, if this resource manager is non-modifiable.

### project: didAddFile:

- (void) project: (id<IBProjects>)proj didAddFile: (id<IBProjectFiles>)file;
Called by an external application when the a file is added.

### project: didChangeLocalizationOfFile:

- (void) project: (id<IBProjects>)proj didChangeLocalizationOfFile: (id<IBProjectFiles>)file;
Called by an external application when the a file changes localization.

### project: didRemoveFile:

- (void) project: (id<IBProjects>)proj didRemoveFile: (id<IBProjectFiles>)file;
Called by an external application when a file is removed.

### resourceFileTypes

- (NSArray*) resourceFileTypes;
Returns a list of resource file types this manager can accept.

### resourcePasteboardTypes

- (NSArray*) resourcePasteboardTypes;
Returns a list of pasteboard types this manager can accept.

### resourcesForObjects:

- (NSArray*) resourcesForObjects: (NSArray*)objs;
Returns the associated resources for the objects.

### writeToDocumentPath:

- (void) writeToDocumentPath: (NSString*)path;
Writes a resource to the document path.

## Instance Variables for IBResourceManager Class

### document

@protected id document;
Description forthcoming.

# IBResourceManager variables

### enum IBResourceLocation

enum IBResourceLocation enum IBResourceLocation;
Enumerated type to allow specification of where the resource lives.

kNibResource
kProjectResource
kPaletteResource
kSystemResource
kUnknownResource