mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 22:51:55 +00:00
* Source/NSSearchFieldCell.m: Correct issue displaying images for
search field. Fix in initWithCoder: to reset image names. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28205 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aa8a27e064
commit
869bc003ff
2 changed files with 26 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-04-12 15:11-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Source/NSSearchFieldCell.m: Correct issue displaying images for
|
||||||
|
search field. Fix in initWithCoder: to reset image names.
|
||||||
|
|
||||||
2009-04-11 Fred Kiefer <FredKiefer@gmx.de>
|
2009-04-11 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSPopUpButtonCell.m (-_popUpItemAction:): New method used
|
* Source/NSPopUpButtonCell.m (-_popUpItemAction:): New method used
|
||||||
|
|
|
@ -424,22 +424,28 @@
|
||||||
- (id) initWithCoder: (NSCoder*)aDecoder
|
- (id) initWithCoder: (NSCoder*)aDecoder
|
||||||
{
|
{
|
||||||
self = [super initWithCoder: aDecoder];
|
self = [super initWithCoder: aDecoder];
|
||||||
|
|
||||||
if ([aDecoder allowsKeyedCoding])
|
if(self != nil)
|
||||||
{
|
{
|
||||||
[self setSearchButtonCell: [aDecoder decodeObjectForKey: @"NSSearchButtonCell"]];
|
if ([aDecoder allowsKeyedCoding])
|
||||||
[self setCancelButtonCell: [aDecoder decodeObjectForKey: @"NSCancelButtonCell"]];
|
{
|
||||||
[self setRecentsAutosaveName: [aDecoder decodeObjectForKey: @"NSRecentsAutosaveName"]];
|
[self setSearchButtonCell: [aDecoder decodeObjectForKey: @"NSSearchButtonCell"]];
|
||||||
[self setSendsWholeSearchString: [aDecoder decodeBoolForKey: @"NSSendsWholeSearchString"]];
|
[self setCancelButtonCell: [aDecoder decodeObjectForKey: @"NSCancelButtonCell"]];
|
||||||
[self setMaximumRecents: [aDecoder decodeIntForKey: @"NSMaximumRecents"]];
|
[self setRecentsAutosaveName: [aDecoder decodeObjectForKey: @"NSRecentsAutosaveName"]];
|
||||||
}
|
[self setSendsWholeSearchString: [aDecoder decodeBoolForKey: @"NSSendsWholeSearchString"]];
|
||||||
else
|
[self setMaximumRecents: [aDecoder decodeIntForKey: @"NSMaximumRecents"]];
|
||||||
{
|
}
|
||||||
[self setSearchButtonCell: [aDecoder decodeObject]];
|
else
|
||||||
[self setCancelButtonCell: [aDecoder decodeObject]];
|
{
|
||||||
[self setRecentsAutosaveName: [aDecoder decodeObject]];
|
[self setSearchButtonCell: [aDecoder decodeObject]];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_sends_whole_search_string];
|
[self setCancelButtonCell: [aDecoder decodeObject]];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(unsigned int) at: &_max_recents];
|
[self setRecentsAutosaveName: [aDecoder decodeObject]];
|
||||||
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_sends_whole_search_string];
|
||||||
|
[aDecoder decodeValueOfObjCType: @encode(unsigned int) at: &_max_recents];
|
||||||
|
}
|
||||||
|
|
||||||
|
[self resetCancelButtonCell];
|
||||||
|
[self resetSearchButtonCell];
|
||||||
}
|
}
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue