mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
* Source/GSConcreteValueTemplate.m: Add hack to make point and
size subclasses for NSValue interchangable.
This commit is contained in:
parent
0e6865a3fd
commit
168d2c91e8
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-05-21 Fred Kiefer <fredkiefer@gmx.de>
|
||||
|
||||
* Source/GSConcreteValueTemplate.m: Add hack to make point and
|
||||
size subclasses for NSValue interchangable.
|
||||
|
||||
2018-05-20 Ivan Vucica <ivan@vucica.net>
|
||||
|
||||
* Source/NSThread.m:
|
||||
|
|
|
@ -245,6 +245,18 @@
|
|||
#endif
|
||||
}
|
||||
|
||||
#if TYPE_ORDER == 1
|
||||
- (NSSize)sizeValue
|
||||
{
|
||||
return NSMakeSize(data.x, data.y);
|
||||
}
|
||||
#elif TYPE_ORDER == 5
|
||||
- (NSPoint)pointValue
|
||||
{
|
||||
return NSMakePoint(data.width, data.height);
|
||||
}
|
||||
#endif
|
||||
|
||||
// NSCoding
|
||||
- (void) encodeWithCoder: (NSCoder*)coder
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue