Use copy instead of NSArchiver as suggested on the list.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32601 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2011-03-16 10:20:07 +00:00
parent 8cf1cd3bab
commit 9fb7317eef
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2011-03-16 06:30-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Source/GSThemeMenu.m: Use copy in setMenu:forWindow: instead of
NSArchiver.
2011-03-14 Fred Kiefer <FredKiefer@gmx.de>
* ColorPickers/GSNamedColorPicker.m

View file

@ -62,8 +62,8 @@
GSWindowDecorationView *wv = [window windowView];
if ([window menu] == nil && menu != nil)
{
NSData *data = [NSArchiver archivedDataWithRootObject: menu]; // copy the view...
NSMenu *newMenu = [NSUnarchiver unarchiveObjectWithData: data];
// NSData *data = [NSArchiver archivedDataWithRootObject: menu]; // copy the view...
NSMenu *newMenu = [menu copy]; // [NSUnarchiver unarchiveObjectWithData: data];
NSMenuView *menuView = nil;
/*