# GormFilePrefsManager

### Authors

Gregory John Casamento

> Sets the information about the.gorm file's version. This allows a file to be saved as an older version of the.gorm format so that older releases can still use.gorm files created by people who have the latest GNUstep and Gorm version.

Copyright: (C) 2003 Free Software Foundation, Inc.

# Software documentation for the GormFilePrefsManager class

## GormFilePrefsManager : NSObject

> Declared in:
>   GormCore/GormFilePrefsManager.h

> Conforms to:
>   NSCoding

Description forthcoming.

Instance Variables
Method summary

- +currentVersion
- -archiveTypeName
- -data
- -fileTypeName
- -isLatest
- -loadFromData:
- -loadFromFile:
- -loadProfile:
- -nibDataWithOpenItems:
- -restoreClassVersions
- -saveToFile:
- -selectArchiveType:
- -selectTargetVersion:
- -setClassVersions
- -setFileTypeName:
- -showIncompatibilities:
- -targetVersionName
- -version
- -versionOfClass:

### currentVersion

+ (int) currentVersion;
The current Gorm version.

### archiveTypeName

- (NSString*) archiveTypeName;
Which achive type, by name.

### data

- (NSData*) data;
Saves the encoded file info.

### fileTypeName

- (NSString*) fileTypeName;
return file type.

### isLatest

- (BOOL) isLatest;
Are we set to the latest version? Returns `YES`, if so.

### loadFromData:

- (BOOL) loadFromData: (NSData*)data;
Loads the encoded file info.

### loadFromFile:

- (BOOL) loadFromFile: (NSString*)path;
Loads the encoded file info.

### loadProfile:

- (void) loadProfile: (NSString*)profileName;
Loads the profile.

### nibDataWithOpenItems:

- (NSData*) nibDataWithOpenItems: (NSArray*)openItems;
Saves the encoded file info.

### restoreClassVersions

- (void) restoreClassVersions;
Restores the versions to the most current.

### saveToFile:

- (BOOL) saveToFile: (NSString*)path;
Saves the encoded file info.

### selectArchiveType:

- (void) selectArchiveType: (id)sender;
Action called when the archive type pulldown is selected.

### selectTargetVersion:

- (void) selectTargetVersion: (id)sender;
Action called when the target version pulldown is selected.

### setClassVersions

- (void) setClassVersions;
Sets the version of the classes.

### setFileTypeName:

- (void) setFileTypeName: (NSString*)ft;
File type name...

### showIncompatibilities:

- (void) showIncompatibilities: (id)sender;
Show incompatibilities in the panel.

### targetVersionName

- (NSString*) targetVersionName;
Which version of the gui library, by name.

### version

- (int) version;
Gorm Version of the current archive.

### versionOfClass:

- (int) versionOfClass: (NSString*)className;
Returns the version of the class in the current profile.

## Instance Variables for GormFilePrefsManager Class

### archiveType

@protected id archiveType;
Description forthcoming.

### archiveTypeName

@protected NSString* archiveTypeName;
Description forthcoming.

### currentProfile

@protected NSDictionary* currentProfile;
Description forthcoming.

### fileType

@protected id fileType;
Description forthcoming.

### gormAppVersion

@protected id gormAppVersion;
Description forthcoming.

### itable

@protected id itable;
Description forthcoming.

### iwindow

@protected id iwindow;
Description forthcoming.

### showIncompatibilities

@protected id showIncompatibilities;
Description forthcoming.

### targetVersion

@protected id targetVersion;
Description forthcoming.

### targetVersionName

@protected NSString* targetVersionName;
Description forthcoming.

### version

@protected NSInteger version;
Description forthcoming.

### versionProfiles

@protected NSDictionary* versionProfiles;
Description forthcoming.