Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Observing Collections




On Jan 2, 2006, at 3:18 PM, Chad Woolf wrote:

I want to observe a key on objects residing in a collection (NSSet preferably but maybe an NSArray would work too). So, lets say I have a collection of 10 objects, each having a key "enabled", and I want to observe the value of the key "enabled" for each object, and also track new objects coming and going from the collection. (I want to do this because I want to maintain a separate collection of enabled objects, and I want to it always be up to date)
[...]
How would you do it?

<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html> See "Graphics Bindings".

mmalc

_______________________________________________
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

This email sent to email@hidden
References: 
 >Observing Collections (From: Chad Woolf <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.