Replace this line:
On Feb 22, 2009, at 11:17 AM, Michael Domino wrote:
prefMinorSectionCFMutableDictionaryRef =
static_cast<CFMutableDictionaryRef>(const_cast<void*>(pVoid));
with this:
prefMinorSectionCFMutableDictionaryRef =
CFDictionaryCreateMutableCopy(NULL, 0,
static_cast<CFDictionaryRef>(const_cast<void*>(pVoid)));
This way, you'll be sure to always get a mutable dictionary,
regardless of whether the original was mutable or not.
Charles
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com