Re: NSTableView content binding question
Re: NSTableView content binding question
- Subject: Re: NSTableView content binding question
- From: Matt Neuburg <email@hidden>
- Date: Fri, 30 Jun 2006 10:34:48 -0700
- Thread-topic: NSTableView content binding question
On Fri, 30 Jun 2006 12:52:17 -0400, David Hoerl <email@hidden> 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@hidden, <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>
_______________________________________________
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