Mailing Lists: Apple Mailing Lists

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

custom views, bindings, and array controller



Hi all,
I didn't see this in the archives, but it feels like it should be an obvious question. I have a custom view that displays a collection of objects. I'd like to do something like NSTableView/NSTableColumn where I can just say "bind the text to an array controller's arrangedObjects.text and the label to arrangedObjects.label." However, I don't see how the custom view will be able to get information from the array controller (selection, # objects, etc.) without specifying the array controller as an outlet. I guess you could have a selection + objects array in the view that you bind the array controller's selection and arrangedObjects items to, but that seems more complicated than it should be. Is there a clean way to set it up like NSTableView?


thanks,
Josh

---
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.