Correct the decoding of the <bytes> element. Now colour are correct.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29964 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-03-15 13:10:05 +00:00
parent 58afda1e08
commit 6ccf4dc7e6
2 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2010-03-15 Fred Kiefer <FredKiefer@gmx.de>
* Source/GSXibLoader.m: Correct the decoding of the <bytes>
element. Use the GSNibLoaging method to set the main menu.
2010-03-15 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSCursor.m (-initWithCoder:): Retain self, when using a

View file

@ -41,6 +41,10 @@
#import "GNUstepGUI/GSModelLoaderFactory.h"
#import "GNUstepGUI/GSNibLoading.h"
@interface NSApplication (NibCompatibility)
- (void) _setMainMenu: (NSMenu*)aMenu;
@end
// Hack: This allows the class name FirstResponder in NSCustomObject and
// correctly returns nil as the corresponding object.
@interface FirstResponder: NSObject
@ -611,7 +615,7 @@
{
obj = [obj nibInstantiate];
}
[NSApp setMainMenu: obj];
[NSApp _setMainMenu: obj];
}
/*
else
@ -1096,6 +1100,7 @@ didStartElement: (NSString *)elementName
{
id new = [[element value] dataUsingEncoding: NSASCIIStringEncoding
allowLossyConversion: NO];
new = [GSMimeDocument decodeBase64: new];
if (key != nil)
[decoded setObject: new forKey: key];