• 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
Re: Trapping insert nil value into dictionary?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Trapping insert nil value into dictionary? (From: "Ben Kennedy" <email@hidden>)

  • Prev by Date: Displaying a checkbox (NSButton) alongside text in NSOutlineView
  • Next by Date: How to get system version?
  • Previous by thread: Re: Trapping insert nil value into dictionary?
  • Next by thread: Table View drops
  • Index(es):
    • Date
    • Thread