Hey,

I have started looking at Key Value Observing but I'm having trouble working out how to observe the changes within an Array.

Is there some place I can find example code on this to help wrap my head around it?

Cheers
Alex Mills


On Sep 20, 2008, at 6:50 AM, Nick Zitzmann wrote:


On Sep 19, 2008, at 9:15 AM, Alex Mills wrote:

I have this working as an IBAction but I want it to run all the time so that it will control the tabs whenever the selection count of the Array changes, how can I do this?


You can use KVO to call a method when the selectedObjects value changes. Check the KVO documentation and the archives for more details.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to