[Top][All Lists]

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

Exception when using GSDictionary in corebase

From: Stefan Bidi
Subject: Exception when using GSDictionary in corebase
Date: Fri, 20 May 2011 11:03:08 -0500

Earlier today I committed the first set of changes to CFString.  It now uses libicu instead of NSString.  This will allow a lot of extra functionality to work, include any of the functions that use CFLocale.  Anyway, that's just the background.

In order to make this work, I moved __CFStringMakeConstantString() to CFString.c and changed it to use CFDictionary instead of NSSet (CFSet doesn't yet exist).  When I did that, I started getting an exception whenever trying to add anything to the dictionary (CFString.c:1173).  It took me a while to figure it out, and it is due to GSDictionary setting GSI_MAP_RETAIN_KEY() being set to call -copyWithZone:.  For some reason, whenever that happens I get a NSCFType does not recognize -copyWithZone: exception.

I don't understand enough about how GSDictionary works, so I was wondering if anyone could help me out here?  Really, I don't even understand why -copyWithZone: is being called since I just need to object retained, not copied.


reply via email to

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