Noddy array controller / bindings question
Noddy array controller / bindings question
- Subject: Noddy array controller / bindings question
- From: Ken Tabb <email@hidden>
- Date: Wed, 28 Jul 2004 13:21:43 +0100
Hi folks,
I've been reading through the Bindings / KVC docs and am unsure, when
reading the Key Value Coding Accessor Methods (specifically the Indexed
Accessor Patterns for To-Many Properties section) at the following URL:
http://developer.apple.com/documentation/Cocoa/Conceptual/
KeyValueCoding/Concepts/AccessorConventions.html
... whether an NSArrayController subclass *has* to implement:
-countOf<Key>
-objectIn<Key>AtIndex:
-insertObject:in<Key>AtIndex: (if it's mutable)
-removeObjectFrom<Key>AtIndex: (if it's mutable)
... or if this is only for array controllers whose objects aren't
really arrays but need to be able to be treated as arrays (as the docs
state you can do if you need to) for the purposes of KVC?
My question is: if I have an NSArrayController that has a few keys, all
of which are NSMutableArrays, do I need to implement any of the above
methods?
Obviously I don't mind doing those implementations but don't want to be
unnecessarily reinventing the wheel. Thanks in advance for pointing me
in the right direction, stupid question I know. I'm not proud of
myself...
Ken
- - - - - - - - - -
Dr. Ken Tabb
Mac & UNIX Technical bloke (C, C++, Obj-C, Java) - Health & Human
Sciences
Machine Vision & Neural Network researcher bloke - Computer Science Dept
University of Hertfordshire, UK
http://www.health.herts.ac.uk/ken/
Certified non-Microsoft Solution Provider
_______________________________________________
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.