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: custom views, bindings, and array controller



Ah, thanks. I was being silly and thinking that the toObject: param in bind was arrangedObjects and not the array controller. RTFM, Josh.


On Apr 29, 2005, at 4:51 PM, email@hidden wrote:

On Apr 29, 2005, at 4:34 PM, Scott Stevenson wrote:

You register for KVO notifications on the array controller inside
bind: and update the view's contents when observeValueForKeyPath:
is called. That method passes in the bound array controller, so you
can just query it directly for its new contents, using the key path
specified during the initial bind.


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

mmalc

---
Josh Anon
Pixar Animation Studios
email@hidden

_______________________________________________
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


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.