* Source/NSMenuItemCell.m: encode menu item in encodeWithCoder:

method.
	* Source/NSMenu.m: Add code to handle NSNoAutoenable
	* Source/NSPopUpButtonCell.m: Decode/encode selected index
	* Source/NSPrintInfo.m: Set orientation after the page size is 
	known, since it has no effect when done earlier.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27568 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
gcasa 2009-01-10 03:49:43 +00:00
parent f8789c2b33
commit 94d202c31a
5 changed files with 62 additions and 16 deletions

View file

@ -883,8 +883,15 @@ static NSImage *arrowImage = nil; /* Cache arrow image. */
- (void) encodeWithCoder: (NSCoder*)aCoder
{
[super encodeWithCoder: aCoder];
[aCoder encodeConditionalObject: _menuItem];
if ([aCoder allowsKeyedCoding])
{
[aCoder encodeObject: _menuItem
forKey: @"NSMenuItem"];
}
else
{
[aCoder encodeConditionalObject: _menuItem];
}
}
- (id) initWithCoder: (NSCoder*)aDecoder