mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-24 06:28:54 +00:00
Change to GSNibContainer to allow encoding of older container version.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19718 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
28406602d1
commit
7f1e3425e5
2 changed files with 21 additions and 3 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-07-11 Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/GSNibTemplates.m: Added code to allow the switching
|
||||
of which version of the file gets encoded based on the value
|
||||
of the class variable "version". This is part of an experimental
|
||||
feature in .gorm files to allow Gorm.app to encode older versions
|
||||
of .gorm files for previous versions of GNUstep.
|
||||
|
||||
2004-07-11 Chad Hardin <cehardin@mac.com>
|
||||
|
||||
* Headers/AppKit/NSPageLayout.h:
|
||||
|
|
|
@ -333,9 +333,19 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
|||
|
||||
- (void) encodeWithCoder: (NSCoder*)aCoder
|
||||
{
|
||||
[aCoder encodeObject: nameTable];
|
||||
[aCoder encodeObject: connections];
|
||||
[aCoder encodeObject: topLevelObjects];
|
||||
int version = [GSNibContainer version];
|
||||
if(version == GNUSTEP_NIB_VERSION)
|
||||
{
|
||||
[aCoder encodeObject: nameTable];
|
||||
[aCoder encodeObject: connections];
|
||||
[aCoder encodeObject: topLevelObjects];
|
||||
}
|
||||
else
|
||||
{
|
||||
// encode it as a version 0 file...
|
||||
[aCoder encodeObject: nameTable];
|
||||
[aCoder encodeObject: connections];
|
||||
}
|
||||
}
|
||||
|
||||
- (id) init
|
||||
|
|
Loading…
Reference in a new issue