* Source/GSConcreteValueTemplate.m: Add hack to make point and

size subclasses for NSValue interchangable.
This commit is contained in:
fredkiefer 2018-05-21 01:47:34 +02:00
parent 0e6865a3fd
commit 168d2c91e8
2 changed files with 17 additions and 0 deletions

View file

@ -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:

View file

@ -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
{