re: custom views, bindings, and array controller
re: custom views, bindings, and array controller
- Subject: re: custom views, bindings, and array controller
- From: Josh Anon <email@hidden>
- Date: Fri, 29 Apr 2005 17:24:31 -0700
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:
This email sent to email@hidden