Yeah, good point. Maybe overriding "arrangeObjects:" (without the
"d") would work better in that case.
I think you'd have to override a lot of functions:
- addObject:
- addObjects:
- insertObject:atArrangedObjectIndex:
- insertObjects:atArrangedObjectIndexes:
- removeObjectAtArrangedObjectIndex:
- removeObjectsAtArrangedObjectIndexes:
- removeObject:
– removeObjects:
I'm sure some of them use each other, but you'd have to test and see.
I think it would be easier to do it the way I first proposed.
Yes, I believe you're right.
However, easiet of all is to simply turn on auto notifications for
arrangedObjects (which you have to do anyway) and make the custom key
dependent on arrangedObjects.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden