Re: Editing a list of NSMutableStrings

2011-03-03 Thread Joanna Carter
Hi Quincey > I think I win by a mile. ☺ You certainly do ☺ I have been away from "bare metal" C programming for so long that I had forgotten about the way C handles array manipulation. > However, in any likely scenario, the actual difference in performance is > likely to be unmeasurable. To ma

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Corbin Long time no speak!! The last time we met in person, was when Borland paid for us (TeamB) to come out to Scotts Valley. > Delphi developers may not have heard of it, but they do it by accident. They > place all of their controller code in a TForm subclass; rarely do they do > somethi

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Corbin Dunn
On Mar 2, 2011, at 1:44 PM, Joanna Carter wrote: > Hi Quincey > > Many thanks for taking the time to look at this issue. > >> This has come up at least once before, and the approach you're using was >> suggested. I think it has some academic interest, but I'm not sure that it's >> of great us

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Quincey > Use 'will/didChange:valuesAtIndexes:forKey:'. Now how did I miss that? :-) The trouble is, when you have spent years learning Delphi's VCL, then even more years learning the.NET libraries, the brain starts to get a bit crammed :-) Joanna -- Joanna Carter Carter Consulting __

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Quincey Morris
> Hmmm, yes I did realise the difference in terminology but… it works!!! Would > it be sufficient to simply use will/didChangeValueForKey, without the set > mutation part, to prompt the NSArrayController to update itself? Use 'will/didChange:valuesAtIndexes:forKey:'. __

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Quincey Many thanks for taking the time to look at this issue. > This has come up at least once before, and the approach you're using was > suggested. I think it has some academic interest, but I'm not sure that it's > of great use in practical applications. I would agree that it is not som

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Quincey Morris
On Mar 2, 2011, at 02:32, Joanna Carter wrote: > I started by using the NSTableView, together with its delegate methods to > supply the list of strings, but what my friend was really after was a way of > using NSArrayController to supply the list of strings. This would also allow > me to use th

Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi folks This all started with a friend who wanted to emulate the Delphi concept of being able to "simply" add a "list box" to a form and add strings to it in the designer. So, because I understand and teach separation of UI from data and, because Xcode beautifully supports MVC, I decided to p