FROM : Matt Neuburg
DATE : Fri Jun 30 19:34:48 2006
On Fri, 30 Jun 2006 12:52:17 -0400, David Hoerl <<email_removed>> said:
>I have an AppController that is supplying Widgets to a
>NSArrayController, and a NSTableView that wants to display these
>Widgets. The Widgets are NSDictionaries, with keys that match the
>NSTableColumn header and identifier.
>
>Now, I cannot find anyway to successfully just use the NSTableView's
>content binding. That is, if I set it to use my NSArrayController's
>arrangedObjects, the table columns are empty (but the scroll bar
>implies there are the correct number of objects in the table.
>
>So, I unbind contents, and bind each individual table column to the
>Widget key it should display, and of course it all works fine.
>
>So what value is the content binding? Did I do it wrong? Is there
>someway to get the
Binding the table columns individually *is* the correct way. Things will
work much better if you just do it that way.
You can bind the table view's contents, but if you do then you must also
bind selectionIndexes and sortDescriptors, and it's all just a big pain in
the butt. You are usually better off doing it the correct way, where
everything is taken care of for you. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
DATE : Fri Jun 30 19:34:48 2006
On Fri, 30 Jun 2006 12:52:17 -0400, David Hoerl <<email_removed>> said:
>I have an AppController that is supplying Widgets to a
>NSArrayController, and a NSTableView that wants to display these
>Widgets. The Widgets are NSDictionaries, with keys that match the
>NSTableColumn header and identifier.
>
>Now, I cannot find anyway to successfully just use the NSTableView's
>content binding. That is, if I set it to use my NSArrayController's
>arrangedObjects, the table columns are empty (but the scroll bar
>implies there are the correct number of objects in the table.
>
>So, I unbind contents, and bind each individual table column to the
>Widget key it should display, and of course it all works fine.
>
>So what value is the content binding? Did I do it wrong? Is there
>someway to get the
Binding the table columns individually *is* the correct way. Things will
work much better if you just do it that way.
You can bind the table view's contents, but if you do then you must also
bind selectionIndexes and sortDescriptors, and it's all just a big pain in
the butt. You are usually better off doing it the correct way, where
everything is taken care of for you. m.
--
matt neuburg, phd = <email_removed>, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
| Related mails | Author | Date |
|---|---|---|
| David Hoerl | Jun 30, 18:52 | |
| Matt Neuburg | Jun 30, 19:34 |






Cocoa mail archive

