* Source/GSNibLoading.m: Read objects/accessibility and oids

maps if we are in a gui builder so that data is accessible.
        * Source/NSActionCell.m: Don't archive target/action if they
        have no values.
        * Source/NSMenu.m: Only archive as "_NSMainMenu" if it has
        no parent and is not owner by a popup.
        * Source/NSPopUpButtonCell.m: Archive the default menu item
        which will show when this popup is displayed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27363 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2008-12-21 03:11:08 +00:00
parent a57d14d144
commit 2d2b5d17e0
5 changed files with 65 additions and 33 deletions

View file

@ -1384,7 +1384,7 @@ static BOOL menuBarVisible = YES;
[encoder encodeObject: _items forKey: @"NSMenuItems"];
// if there is no supermenu, make it the main menu.
if ([self supermenu] == nil)
if ([self supermenu] == nil && ![self _ownedByPopUp])
{
[encoder encodeObject: @"_NSMainMenu" forKey: @"NSName"];
}