ProjectManager
0.2
|
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>
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 |
NSArray * | allTypes |
NSArray * | types |
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.
- (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.