ProjectManager  0.2
Instance Methods | Class Methods | Protected Attributes | List of all members
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>

Inheritance diagram for NewFileTypeChooser:

Instance Methods

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

Class Methods

(id) + shared
 

Protected Attributes

id panel
 
id matrix
 
id okButton
 
NSArray * allTypes
 
NSArray * types
 

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.

Method Documentation

◆ runModalWithRequiredKey:value:

- (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: