• 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: Simple Bindings Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Bindings Question


  • Subject: Re: Simple Bindings Question
  • From: mmalcolm crawford <email@hidden>
  • Date: Mon, 19 Dec 2005 18:15:55 -0800


On Dec 19, 2005, at 6:05 PM, Kiel Gillard wrote:

I wish to have an NSArrayController subclass managing a collection of my NSMutableDictionary subclasses.
[...]
I don't think I've done anything unusual. So why is it that I get this message in the console whenever the array controller receives the add: message? *** NSRunLoop ignoring exception '*** - setObject:forKey: only defined for abstract class. Define - [KGMutableDictionary setObject:forKey:]!' that raised during posting of delayed perform with target 380770 and selector 'invokeWithTarget:'

NSMutableDictionary is a class cluster:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaObjects/Articles/ClassClusters.html>
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSDictionary.html#//apple_ref/occ/cl/NSDictionary>

You should generally consider composition rather than subclassing NS [Mutable]Dictionary...

mmalc

_______________________________________________
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
References: 
 >Simple Bindings Question (From: Kiel Gillard <email@hidden>)

  • Prev by Date: Re: Natural language date entry problems
  • Next by Date: Re: XCode and subversion
  • Previous by thread: Simple Bindings Question
  • Next by thread: Question regarding NSPopUpButton and Data Binding
  • Index(es):
    • Date
    • Thread