mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Use method call to change cell type.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20038 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e04a7e9892
commit
1040bb284d
2 changed files with 17 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-09-09 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSCell.m (-setStringValue:, -setFont:, -setImage:): Use
|
||||
method call to change cell type.
|
||||
|
||||
2004-09-07 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/GNUmakefile: Specify INTERFACE_VERSION explicitly.
|
||||
|
|
|
@ -344,7 +344,10 @@ static NSColor *shadowCol;
|
|||
@"Attempt to use nil as string value");
|
||||
}
|
||||
|
||||
_cell.type = NSTextCellType;
|
||||
if (_cell.type != NSTextCellType)
|
||||
{
|
||||
[self setType: NSTextCellType];
|
||||
}
|
||||
_cell.contents_is_attributed_string = NO;
|
||||
|
||||
if (_formatter == nil)
|
||||
|
@ -739,13 +742,13 @@ static NSColor *shadowCol;
|
|||
|
||||
- (void) setFont: (NSFont*)fontObject
|
||||
{
|
||||
// This does not have any influence on attributed strings
|
||||
ASSIGN (_font, fontObject);
|
||||
|
||||
if (_cell.type != NSTextCellType)
|
||||
{
|
||||
_cell.type = NSTextCellType;
|
||||
[self setType: NSTextCellType];
|
||||
}
|
||||
|
||||
// This does not have any influence on attributed strings
|
||||
ASSIGN (_font, fontObject);
|
||||
}
|
||||
|
||||
- (void) setSelectable: (BOOL)flag
|
||||
|
@ -970,7 +973,10 @@ static NSColor *shadowCol;
|
|||
NSInvalidArgumentException);
|
||||
}
|
||||
|
||||
_cell.type = NSImageCellType;
|
||||
if (_cell.type != NSImageCellType)
|
||||
{
|
||||
[self setType: NSImageCellType];
|
||||
}
|
||||
|
||||
ASSIGN (_cell_image, anImage);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue