Re: Trapping insert nil value into dictionary?
Re: Trapping insert nil value into dictionary?
- Subject: Re: Trapping insert nil value into dictionary?
- From: "Ben Kennedy" <email@hidden>
- Date: Fri, 17 Oct 2003 12:58:56 -0400
- Organization: Zygoat Creative Technical Services
On 17 10 2003 at 12:11 pm -0400, Ben Kennedy wrote:
>
First of all, I have verified that poseAsClass: is properly taking
>
effect, since I've added a dummy +[ test] method to my NSCFDictionary
>
subclass, and calling [NSCFDictionary test] invokes it. However,
>
setObject:forKey isn't taking; it's as though I haven't even overridden
>
the method. I've used exactly the signature as provided by class-dump.
Don et al.,
Please excuse this... it was a stupid error on my part. I was in fact
calling an instance of NSMutableDictionary, not NSCFDictionary.
(However, I still don't understand why the exception referred to it as
"%NSCFDictionary", especially since NSCFD inherits from NSMD and not the
other way around...)
I'm now logging the key for nil-value inserts, and will send a test build
to my user in an effort to nail down where this is occurring.
-ben
--
Ben Kennedy, chief magician
zygoat creative technical services
613-228-3392 | 1-866-466-4628
http://www.zygoat.ca
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.