bug-gnustep
[Top][All Lists]
Advanced

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

[bug #21343] KVC implementation throws uncaught exception parsing BOOLs


From: Larry Campbell
Subject: [bug #21343] KVC implementation throws uncaught exception parsing BOOLs
Date: Mon, 15 Oct 2007 16:02:49 +0000
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/419.3 (KHTML, like Gecko) Safari/419.3

URL:
  <http://savannah.gnu.org/bugs/?21343>

                 Summary: KVC implementation throws uncaught exception
parsing BOOLs
                 Project: GNUstep
            Submitted by: lcampbel
            Submitted on: Monday 10/15/2007 at 16:02
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

 gnustep-base doesn't supply -[NS(Constant)String unsignedCharValue], but its
KVC
implementation uses it for parsing BOOLs. So if you try to setValue:forKey: a
BOOL ivar,  you get this:

<NSException: 8112048> NAME:NSInvalidArgumentException
REASON:NSConstantString(instance) does not recognize unsignedCharValue

The fix is simple: provide -[NSString unsignedCharValue].





    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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