Simple Bindings Question
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