On May 3, 2012, at 6:33 PM, Koen van der Drift wrote: > On Wed, May 2, 2012 at 10:15 PM, Koen van der Drift > <[email protected]> wrote: >> Got it, it all works (I think :). >> >> The only thing that made me scratch my head was how to empty the whole >> array. > > I am of course aware of [myArray removeAllObjects], but is that KVO > compliant? I couldn't find that in the docs. >
It's not, no. If you want a KVO way of removing all the objects use the remove<key>AtIndexes: or just set<Key>: with an empty array. You'll get different types of KVO message (NSKeyValueChangeRemoval vs NSKeyValueChangeSetting). _______________________________________________ Cocoa-dev mailing list ([email protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
