Thank you Shawn and mmalc. I would have never figured this out without
that direct reference. Even if I had read that reference previously, I
wouldn't have made the connection and understood what was going on.
So apparently, NSArrayController uses these methods if they are
available -- otherwise directly accesses the array -- which my code is
doing? Does NSTreeController do the same?
As far as I can tell, there is not one word about this in the
documentation for NSArray, NSMutableArray, or NSArrayController. There
I can see the value of having it. In fact, this may be what I need to
intercept array changes to implement item number resequencing for line
numbering and for Core Data array retrieval. (I don't allow resorting by
user. My data has a definite order.)
> The controller is managing the document's array. Why wouldn't it use
> those methods?
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden