Re: Binding to currently selected object in a list?

2009-10-10 Thread A B
en Thomases" wrote: >On Oct 9, 2009, at 5:08 PM, A B wrote: > >> Is there a way to bind an ivar to the currently selected object of a >> list which is being represented in an NSTableView via bindings? >> Unfortunately there does not seem to be a "selectedObje

Re: Binding to values which aren't there

2009-10-09 Thread A B
On Friday, October 09, 2009, at 04:21PM, "mmalc Crawford" wrote: > >On Oct 9, 2009, at 3:17 PM, A B wrote: > >> I have a situation in which I would like a column in a table that is bound >> to an NSArrayController to display information that isn't actually

Binding to values which aren't there

2009-10-09 Thread A B
I have a situation in which I would like a column in a table that is bound to an NSArrayController to display information that isn't actually in the objects being represented, but is instead the result of an operation that involves a bit of data in that row's object and a separate bit of data in

Binding to currently selected object in a list?

2009-10-09 Thread A B
Is there a way to bind an ivar to the currently selected object of a list which is being represented in an NSTableView via bindings? Unfortunately there does not seem to be a "selectedObject" key (though there is one for "selectedObjects"). Binding to the controller's "selection" doesn't reall

Binding a model's ivar array to the contents of an NSArrayController

2009-09-16 Thread A B
I have an NSView that is keeping track of a group of objects via an NSMutableArray ivar (let's call it relatedObjects). Objects in this array are represented in the view by subviews (i.e. when I add an object to the array, a new subview appears, when I delete them, the associated subview is rem

Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread A B
OK, I'm feeling really REALLY stupid for asking this question, but I've managed to stump myself so hard that I doubt I have the proper detachment to figure out the answer for myself any more. My apologies in advance... I have been playing around with bindings for a while now and LOVE them. Tha