discuss-gnustep
[Top][All Lists]
Advanced

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

Re: KVC


From: Chris Farber
Subject: Re: KVC
Date: Tue, 5 Jun 2007 18:14:35 -0400

On May 31, 2007, at 4:20 PM, Helge Hess wrote:

Ok,

found another thing ;-) GNUstep KVC breaks with Unicode keys! Eg:

  [self takeValue:urks forKey:@"Helge Heß"];

produces an exception because the ß can't be converted to ASCII. I recommend switching the conversion to UTF-8.

I don't believe this is an issue, as you cannot use unicode for variables or method names.


Please remember that KVC is not just for accessing methods but for arbitary key/value combinations.

Perhaps you are thinking of NSMutableDictionary? KVC is only for setting properties via appropriately named methods or direct access to instance variables.


Thanks,
  Helge

PS: the above happened in SOGo when the code first attempts to resolve an object (based on a CN) via KVC and only then resorts to other mechanisms. (we do not really key on that name, but we do key other stuff in the same namespace).



Chris Farber



reply via email to

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