From: Paul H. <pa...@lo...> - 2008-12-22 07:22:08
|
Hi Thomas, On 22/12/2008, at 5:38 PM, Thomas Wedderburn-Bisshop wrote: > Yes, I tried connecting the list binding to something meaningful, > and it didn't work, which is why I connected it to an instance > variable. But that means I have to set the variable each time > through the loop: > > public void setAChecklistGroup(ChecklistGroup g) { > aChecklistGroup = g; > if (g!=null) _items = > (NSArray > < > ChecklistItem>)g.toChecklistItems().valueForKeyPath("@sort.sequence"); > } > > Note that this is not a KVC thing, because I had a method > setItems(NSArray<ChecklistItem> items) but that was never called by > the component when it changed the array-- it poked it directly into > _items without using an accessor. Thanks---that was the detail I was missing. Nested AjaxSortableLists are now working for me. -- Paul. w http://logicsquad.net/ h http://paul.hoadley.name/ |