2010-07-22 19:35-EDT Gregory John Casamento <greg.casamento@gmail.com>

* Source/GSTheme.m: Call method _setArchiveByName: with YES so that
	images loaded by a theme will not be persisted as image data, but
	rather as references.  This will avoid an issue with saving theme
	images when saving files in Gorm while a theme is loaded.
	* Source/NSImage.m: Added method _setArchiveByName:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31021 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2010-07-22 23:27:36 +00:00
parent 2eb0a85405
commit 6d682ee88e
3 changed files with 28 additions and 0 deletions

View file

@ -2156,4 +2156,14 @@ iterate_reps_for_types(NSArray* imageReps, SEL method)
return (NSImage*)proxy;
}
/**
* This method allows the theme system to specify that an image
* should be archived using the reference to it's name only.
* This prevents saving theme specific image data into the
* images in an archive.
*/
- (void) _setArchiveByName: (BOOL)flag;
{
_flags.archiveByName = flag;
}
@end