mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 16:20:38 +00:00
* 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:
parent
f8789c2b33
commit
94d202c31a
5 changed files with 62 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue