Re: Binding to selection of NSArrayController

2015-02-03 Thread Marek Hrušovský
This sounds like that selection from nstableview is not properly linked. Make sure that selectionIndex (or something similar) from table is linked to arraycontroller On Tue, Sep 23, 2014 at 6:15 PM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: Hi all, I feel this should be a very

Binding to selection of NSArrayController

2014-09-23 Thread Jonathan Taylor
Hi all, I feel this should be a very simple question, but I am struggling with it - the tutorials and online info I can find is either 5 years out of date or seem to imply that I am doing everything right! In my code I have an NSMutableArray of “message” objects, each with a number of

Re: Binding to selection of NSArrayController

2014-09-23 Thread Jonathan Taylor
Ah brilliant, that’s fixed it - thanks very much! Makes sense in retrospect that I would have to do that, but hadn’t crossed my mind at the time. Cheers Jonny On 23 Sep 2014, at 17:26, Marek Hrušovský xhrus...@gmail.com wrote: This sounds like that selection from nstableview is not properly

Re: Binding to selection of NSArrayController

2014-09-23 Thread Lee Ann Rucker
On Sep 23, 2014, at 9:15 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: [*] One slight glitch - if I add an object to the NSMutableArray then it does not immediately show up in the table, I have to call will/didChangeValueForKey on the property that returns the array. I

Re: Binding to selection of NSArrayController

2014-09-23 Thread Quincey Morris
On Sep 23, 2014, at 11:36 , Lee Ann Rucker lruc...@vmware.com wrote: On Sep 23, 2014, at 9:15 AM, Jonathan Taylor jonathan.tay...@glasgow.ac.uk wrote: [*] One slight glitch - if I add an object to the NSMutableArray then it does not immediately show up in the table, I have to call

Re: Binding to selection of NSArrayController

2014-09-23 Thread Jonathan Taylor
Thankyou both for your advice - it's good to have you set me right on that one. Fortunately mine is a relatively uncomplicated case, and so [NSArrayController add/removeObject:] should do the job nicely It feels a bit odd doing it that way, just because it makes the NSArray almost redundant

Binding to selection of NSArrayController manually

2009-03-13 Thread Ivy Feraco
Hello everybody Bindings problem: I have an NSArrayController subclass and an NSPopUpButton subclass. I am trying to bind the NSPopUpButton's selected object to the selection of my array controller. I have to do this manually for reasons I won't get into here. But when I do this (self is

Re: Binding to selection of NSArrayController manually

2009-03-13 Thread Keary Suska
On Mar 13, 2009, at 9:42 AM, Ivy Feraco wrote: Hello everybody Bindings problem: I have an NSArrayController subclass and an NSPopUpButton subclass. I am trying to bind the NSPopUpButton's selected object to the selection of my array controller. I have to do this manually for reasons I

Re: Binding to selection of NSArrayController manually

2009-03-13 Thread Stuart Malin
On Mar 13, 2009, at 9:42 AM, Ivy Feraco wrote: I have an NSArrayController subclass and an NSPopUpButton subclass. I am trying to bind the NSPopUpButton's selected object to the selection of my array controller. I have to do this manually for reasons I won't get into here. But when I do this

Re: Binding to selection of NSArrayController manually

2009-03-13 Thread Ivy Feraco
Yes thanks I did something like this. I realize now that selection is just a getter method on NSObjectController so no sense binding to it without a keypath. Ivy Feraco UI Developer i...@boxstudios.com On Mar 13, 2009, at 2:34 PM, Stuart Malin wrote: On Mar 13, 2009, at 9:42 AM, Ivy