Re: NSArrayController for unordered collection (non-array)
Re: NSArrayController for unordered collection (non-array)
- Subject: Re: NSArrayController for unordered collection (non-array)
- From: mmalcolm crawford <email@hidden>
- Date: Sun, 26 Dec 2004 15:31:26 -0800
On Dec 26, 2004, at 3:11 PM, Bob Peterson wrote:
MMalcolm's page has an example of a filtered array controller, but it
doesn't override methods like insertObject:atArrangedObjectIndex:. Is
it proper to subclass NSArrayController and tell it to ignore the
index value for inserts and just add the new object into its natural
position?
See the Combatants example, which uses a fixed set of instance
variables.
You can simply override the indexed accessors in the container object.
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