Re: binding and too many relationship insertion
Re: binding and too many relationship insertion
- Subject: Re: binding and too many relationship insertion
- From: Allan Odgaard <email@hidden>
- Date: Thu, 1 Jul 2004 19:03:29 +0200
On 1. Jul 2004, at 17:06, Olivier Destrebecq wrote:
when i send the add: message to an array controller in my app
everything works fine except that it use the set<Key>: method in my
method instead of the insertIn<Key>: method.
It uses a proxy object obtained using mutableArrayValueForKey which:
"Searches the class of the receiver for a pair of methods whose names
match the patterns insertObject:in<Key>AtIndex: and
removeObjectFrom<Key>AtIndex:" (and fallbacks on the set<Key>: if these
are not found).
So you must implement both methods, and you must name them correctly.
More info:
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/
ObjC_classic/Protocols/NSKeyValueCoding.html#//apple_ref/doc/uid/
20000471/BABJFEAE
_______________________________________________
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.