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: Sun, 10 Feb 2008 15:16:05 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; fr-fr) AppleWebKit/523.10.6 (KHTML, like Gecko) Version/3.0.4 Safari/523.10.6

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/





reply via email to

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