ProjectManager  0.2
Public Member Functions | Static Public Member Functions | Protected Attributes
NewFileTypeChooser Class Reference

This object pops up a modal panel and asks the user to select the file type of a new file to be created. More...

#import <NewFileTypeChooser.h>

List of all members.

Public Member Functions

(NSString *) - runModalWithRequiredKey:value:
 Runs the panel in a modal session and asks the user to select a file type.
(void) - ok:
(void) - cancel:

Static Public Member Functions

(id) + shared

Protected Attributes

id panel
id matrix
id okButton
NSArrayallTypes
NSArraytypes

Detailed Description

This object pops up a modal panel and asks the user to select the file type of a new file to be created.

The list of available file types is taken from the Info-gnustep.plist's NSTypes array.


Member Function Documentation

- (NSString *) runModalWithRequiredKey: (id)  key
value: (id)  value 

Runs the panel in a modal session and asks the user to select a file type.

The range of available types can be filtered with the `key' and `value' arguments. If key = nil, the all file types which have an NSName and NSHumanReadableName in NSTypes are listed. If key != nil and value = nil then only those types which have `key' defined in them to any value are listed. If both key and value != nil, then only types which have `key' set to `value' are listed.

Returns:
The NSName key's value in the selected type or `nil' if the user pressed `Cancel'.

The documentation for this class was generated from the following files: