• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCFDictionary custom callbacks (Or: I Was Wrong)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCFDictionary custom callbacks (Or: I Was Wrong)
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: Distributed Objects, copying thereof
  • Next by Date: Re: NSCFDictionary custom callbacks (Or: I Was Wrong)
  • Previous by thread: How to do modal mouse tracking loop efficiently?
  • Next by thread: Re: NSCFDictionary custom callbacks (Or: I Was Wrong)
  • Index(es):
    • Date
    • Thread