mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
|
@ -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…
Add table
Add a link
Reference in a new issue