URL:
<http://savannah.gnu.org/bugs/?22277>
Summary: KVC should handle common structs like NSSize,
NSRect etc.
Project: GNUstep
Submitted by: qmathe
Submitted on: dimanche 10.02.2008 à 15:16
Category: Base/Foundation
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
With gnustep-base trunk r26014
KVC on Mac OS X (Cocoa) takes care of handling common structs like NSPoint,
NSRange, NSSize and NSRect in -setValue:forKey: when you pass them boxed in an
NSValue. In the reverse way, it takes care of returning common structs boxed
in an NSValue when you call -valueForKey:.
On GNUstep, such handling is missing, so for example an exception is raised
by GSObjcSetVal() if you do:
[myObject setValue: [NSValue valueWithSize: NSMakeSize(32, 32)] forKey:
@"size"];
Quentin.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?22277>
_______________________________________________
Message posté via/par Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep