NSCFDictionary custom callbacks (Or: I Was Wrong)
NSCFDictionary custom callbacks (Or: I Was Wrong)
- Subject: NSCFDictionary custom callbacks (Or: I Was Wrong)
- From: "Michael Ash" <email@hidden>
- Date: Thu, 8 Jun 2006 21:35:08 -0400
A few weeks back I posted to a thread on this list stating that
toll-free bridging between NSDictionary and CFDictionary ignored
custom callbacks. In other words, creating a CFMutableDictionary using
custom callbacks (say, one which doesn't copy its keys), and then
using NSMutableDictionary methods to change its contents would fail to
invoke the custom callback, and would copy the keys anyway.
Well, I just got some feedback from Apple on the bug I filed about
this, and it turns out that I'm just completely wrong about how it
behaves. The original observation was actually due to a bug in my test
program, not a defect in Cocoa or CoreFoundation. When fixed, my test
program indicates that my custom callbacks are in fact invoked even
when using NSMutableDictionary methods.
I'm sorry to anyone I may have misled on the list, and thanks are due
to the friendly Apple engineer who corrected my test case.
Mike
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden