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

Simple Bindings Question


  • Subject: Simple Bindings Question
  • From: Kiel Gillard <email@hidden>
  • Date: Tue, 20 Dec 2005 13:05:29 +1100

Hi list!

I wish to have an NSArrayController subclass managing a collection of my NSMutableDictionary subclasses. I have subclassed NSArrayController and overrode - (id)newObject to return an instance of my KGMutableDictionary class. This instance is created using a designated initialiser, which takes a single string for an argument. This string is preserved by the instance by calling [self setValue:string1 forKey:@"key"]. In Interface Builder, I have set the array controller's object class name to KGMutableDictionary.

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:'

I tried re-implementing setObject: forKey: by calling the superclass implementation, but it didn't work. Any ideas?

Kiel :-)
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."
Albert Einstein
_______________________________________________
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: Simple Bindings Question
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: What does crash in setSelectedRanges:affinity:stillSelecting mean?
  • Next by Date: Re: Natural language date entry problems
  • Previous by thread: EXECUTABLE_NAME in Cocoa project templates
  • Next by thread: Re: Simple Bindings Question
  • Index(es):
    • Date
    • Thread