Do you have "selects inserted objects" enabled? It's on by default in the nib.
----- Original Message ----- From: "Luc Van Bogaert" <[email protected]> To: "Cocoa Dev List" <[email protected]> Sent: Monday, July 7, 2014 1:42:10 PM Subject: Observing NSArrayController selection property Hello All, I'm observing the "selection" property of a NSArrayController object so I can redraw a custom view whenever the selection of the controllers' objects changes. This seems to work fine, except that I also receive messages for the "selection" keypath when sending addObject: or removeObject: to the controller. The same happens when observing other keypaths like "selectedObjects" or "selectedObjects.count". As a result I'm redrawing my custom view time many times when it's not required. Is there a way to avoid this? Thank you, -- Luc Van Bogaert _______________________________________________ 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://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=cCBe%2Bv2ICAVo9s7PMgmhTHzpYH6HKBaKfxn1LrXOLlw%3D%0A&s=69f2366aaa6aa42f3334a946495a35a5fc9dfeed31f91586c89d956a630e9581 This email sent to [email protected] _______________________________________________ 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]
