Corrections for document and connections.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@23070 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2006-06-17 10:55:14 +00:00
parent f77fb0e8a1
commit 1c824fd1aa
3 changed files with 25 additions and 1 deletions

View file

@ -1,3 +1,12 @@
2006-06-17 06:53 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Added code to clear changes
so that the nib loads without showing the document as changed.
Also added code to correct the missing colon in some nib files
for certain methods so that connections are correctly made.
* Resources/ClassInformation.plist: Addition of missing methods on
NSFirst.
2006-06-17 06:25 Gregory John Casamento <greg_casamento@yahoo.com>
* GormCore/GormNibWrapperLoader.m: Fix for connections to NSOwner.

View file

@ -286,6 +286,7 @@
id dest = [o destination];
if([o isKindOfClass: [NSNibControlConnector class]])
{
NSString *tag = [o label];
if(dest == nibFilesOwner)
{
[o setDestination: [document filesOwner]];
@ -294,13 +295,26 @@
{
[o setDestination: [document firstResponder]];
}
// Correct the missing colon problem...
NSRange colonRange = [tag rangeOfString: @":"];
unsigned int location = colonRange.location;
if(location == NSNotFound)
{
NSString *newTag = [NSString stringWithFormat: @"%@:",tag];
[o setLabel: (id)newTag];
}
}
[document addConnector: o];
}
// turn on custom classes.
[NSClassSwapper setIsInInterfaceBuilder: NO];
// clear the changes, since we just loaded the document.
[document updateChangeCount: NSChangeCleared];
return YES;
}
}

View file

@ -12,6 +12,7 @@
"changeColor:",
"changeFont:",
"checkSpelling:",
"clearRecentDocuments:",
"close:",
"complete:",
"copy:",