bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #22277] KVC should handle common structs like NSSize, NSRect etc.


From: Quentin Mathé
Subject: [bug #22277] KVC should handle common structs like NSSize, NSRect etc.
Date: Fri, 22 Feb 2008 00:25:51 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr-fr) AppleWebKit/523.15.1 (KHTML, like Gecko) Version/3.0.4 Safari/523.15

Follow-up Comment #2, bug #22277 (project gnustep):

Thanks for implementing this feature. 
I just tested it, but it doesn't work as expected.

If I add the following log statement  at line 1764 of GSObjCRuntime.m:
NSLog(@"encode rect %s point %s type %s", @encode(NSRect), @encode(NSPoint),
type));

I observe that -[NSMethodSignature methodReturnType] doesn't exactly match
@encode values for NSRect, NSPoint etc.

Here is the output I get:
2008-02-22 01:08:21.110 ObjectManagerExample[16975] encode rect
{_NSRect={_NSPoint=ff}{_NSSize=ff}} point {_NSPoint=ff} type
{_NSRect={_NSPoint=ff}{_NSSize=ff}}12@4:8
ObjectManagerExample.app/ObjectManagerExample: Uncaught exception
NSInvalidArgumentException, reason: key-value get method unsupported struct

Why the return type includes human readable stuff like
'{_NSRect={_NSPoint=ff}{_NSSize=ff}}' in addition to '12@4:8' for NSRect?




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?22277>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]