mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-24 03:51:22 +00:00
Reinstate repair mode and add code to get rid of hard action/target settings
This commit is contained in:
parent
b7c07ebcb3
commit
ac9f09db84
1 changed files with 16 additions and 4 deletions
|
@ -197,6 +197,20 @@
|
||||||
{
|
{
|
||||||
NSString *name = nil;
|
NSString *name = nil;
|
||||||
|
|
||||||
|
// Delete old target action settings if they are directly encoded.
|
||||||
|
if ([v respondsToSelector: @selector(setTarget:)])
|
||||||
|
{
|
||||||
|
[v setTarget: nil]; // remove hard set targets or actions.
|
||||||
|
[_repairLog addObject: @"ERROR: Removing hard set target.\n"];
|
||||||
|
NSLog(@"ERROR: Removing hard set target.\n");
|
||||||
|
}
|
||||||
|
if ([v respondsToSelector: @selector(setAction:)])
|
||||||
|
{
|
||||||
|
[v setAction: NULL]; // remove hard set targets or actions.
|
||||||
|
[_repairLog addObject: @"ERROR: Removing hard set action.\n"];
|
||||||
|
NSLog(@"ERROR: Removing hard set action.\n");
|
||||||
|
}
|
||||||
|
|
||||||
// skip these...
|
// skip these...
|
||||||
if([v isKindOfClass: [NSMatrix class]])
|
if([v isKindOfClass: [NSMatrix class]])
|
||||||
{
|
{
|
||||||
|
@ -227,7 +241,7 @@
|
||||||
[_repairLog addObject: @"INFO: Skipping NSClipView in an NSTextView.\n"];
|
[_repairLog addObject: @"INFO: Skipping NSClipView in an NSTextView.\n"];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((name = [document nameForObject: v]) == nil)
|
if((name = [document nameForObject: v]) == nil)
|
||||||
{
|
{
|
||||||
[document attachObject: v toParent: [v superview]];
|
[document attachObject: v toParent: [v superview]];
|
||||||
|
@ -578,13 +592,11 @@
|
||||||
/*
|
/*
|
||||||
* Repair the .gorm file, if needed.
|
* Repair the .gorm file, if needed.
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
if(repairFile)
|
if(repairFile)
|
||||||
{
|
{
|
||||||
[self _repairFile];
|
[self _repairFile];
|
||||||
}
|
}
|
||||||
*/
|
NSDebugLog(@"nameTable = %@",[container nameTable]);
|
||||||
NSDebugLog(@"nameTable = %@",[container nameTable]);
|
|
||||||
|
|
||||||
// awaken all elements after the load is completed.
|
// awaken all elements after the load is completed.
|
||||||
enumerator = [nt keyEnumerator];
|
enumerator = [nt keyEnumerator];
|
||||||
|
|
Loading…
Reference in a new issue