Fix for bug#42782

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@38136 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2014-10-28 07:09:52 +00:00
parent 9c9af61d37
commit 14b3cc8602
5 changed files with 33 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2014-10-28 03:08-EDT Gregory John Casamento <greg.casamento@gmail.com>
* English.lproj/Gorm.gorm: Change connection to point to
new selectAll:
* GormCore/GormWrapperLoader.m: Fix for bug #42782
* Gorm.m: Add select all method.
2014-08-31 Fred Kiefer <FredKiefer@gmx.de>
* GormCore/GormDocument.m: Rewrite fix for bug #39072 to stop

Binary file not shown.

Binary file not shown.

17
Gorm.m
View file

@ -713,11 +713,26 @@
[(id<IBSelectionOwners,IBEditors>)selectionOwner deleteSelection];
}
- (void) selectAll: (id)sender
{
if ([[selectionOwner selection] count] == 0
|| [selectionOwner respondsToSelector: @selector(deleteSelection)] == NO)
return;
if([self isConnecting])
{
[self stopConnecting];
}
[(id<IBSelectionOwners,IBEditors>)selectionOwner deleteSelection];
}
/*
- (void) selectAllItems: (id)sender
{
/* TODO: Select all items in the current selection owner. */
return;
}
*/
- (void) setName: (id)sender
{

View file

@ -77,6 +77,16 @@ static GormWrapperLoaderFactory *_sharedWrapperLoaderFactory = nil;
while((key = [enumerator nextObject]) != nil)
{
NSFileWrapper *fw = [fileWrappers objectForKey: key];
//
// Images with .info can be loaded, but we have a file
// called data.info which is metadata for Gorm. Don't load it.
//
if ( [key isEqualToString: @"data.info"] == YES )
{
continue;
}
if([fw isRegularFile])
{
NSData *fileData = [fw regularFileContents];