mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@5655 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d5b56eea8e
commit
042bb78eb2
5 changed files with 20 additions and 5 deletions
|
@ -1,3 +1,4 @@
|
||||||
{
|
{
|
||||||
|
OpenNibs = NO;
|
||||||
SaveAsNib = NO;
|
SaveAsNib = NO;
|
||||||
}
|
}
|
||||||
|
|
|
@ -260,8 +260,13 @@ The current defaults are -
|
||||||
|
|
||||||
If this boolean is set to @samp{YES} then Gorm will save documents with a
|
If this boolean is set to @samp{YES} then Gorm will save documents with a
|
||||||
@samp{.nib} file extension (for NeXT/Apple compatibility), otherwise it will
|
@samp{.nib} file extension (for NeXT/Apple compatibility), otherwise it will
|
||||||
save with a @samp{.gorm} extension. In either case, Gorm will permit attempts
|
save with a @samp{.gorm} extension.
|
||||||
to open either type of document.
|
|
||||||
|
@item OpenNibs
|
||||||
|
|
||||||
|
If this boolean is set to @samp{YES} then Gorm will accept an attempt to open
|
||||||
|
a document with a @samp{.nib} file extension (for NeXT/Apple compatibility),
|
||||||
|
otherwise it will only open documents with a @samp{.gorm} extension.
|
||||||
|
|
||||||
NB. While Gorm will attempt to open @samp{.nib} documents, it can't open true
|
NB. While Gorm will attempt to open @samp{.nib} documents, it can't open true
|
||||||
NeXT/Apple documents, only ones it has written itsself.
|
NeXT/Apple documents, only ones it has written itsself.
|
||||||
|
|
|
@ -29,7 +29,8 @@ include $(GNUSTEP_MAKEFILES)/common.make
|
||||||
#
|
#
|
||||||
SUBPROJECTS = \
|
SUBPROJECTS = \
|
||||||
Documentation \
|
Documentation \
|
||||||
Palettes
|
Palettes \
|
||||||
|
Testing
|
||||||
|
|
||||||
#
|
#
|
||||||
# MAIN APP
|
# MAIN APP
|
||||||
|
|
|
@ -808,10 +808,18 @@ static NSImage *classesImage = nil;
|
||||||
*/
|
*/
|
||||||
- (id) openDocument: (id)sender
|
- (id) openDocument: (id)sender
|
||||||
{
|
{
|
||||||
NSArray *fileTypes = [NSArray arrayWithObjects: @"gorm", @"nib", nil];
|
NSArray *fileTypes;
|
||||||
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
|
if ([[NSUserDefaults standardUserDefaults] boolForKey: @"OpenNibs"] == YES)
|
||||||
|
{
|
||||||
|
fileTypes = [NSArray arrayWithObjects: @"gorm", @"nib", nil];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
fileTypes = [NSArray arrayWithObjects: @"gorm", nil];
|
||||||
|
}
|
||||||
[oPanel setAllowsMultipleSelection: NO];
|
[oPanel setAllowsMultipleSelection: NO];
|
||||||
[oPanel setCanChooseFiles: YES];
|
[oPanel setCanChooseFiles: YES];
|
||||||
[oPanel setCanChooseDirectories: NO];
|
[oPanel setCanChooseDirectories: NO];
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
- (id) open: (id)sender
|
- (id) open: (id)sender
|
||||||
{
|
{
|
||||||
NSArray *fileTypes = [NSArray arrayWithObject: @"nib"];
|
NSArray *fileTypes = [NSArray arrayWithObjects: @"gorm", @"nib", nil];
|
||||||
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
NSOpenPanel *oPanel = [NSOpenPanel openPanel];
|
||||||
id oldDelegate = [NSApp delegate];
|
id oldDelegate = [NSApp delegate];
|
||||||
int result;
|
int result;
|
||||||
|
|
Loading…
Reference in a new issue