Wednesday 15 July 2015

cocoa - Xcode hanging, runs out of memory when using Bindings and IB -



cocoa - Xcode hanging, runs out of memory when using Bindings and IB -

i have core info model 2 entities, sake of post phone call them category , items, category parent entity one-to-many relationship items.

in ib have nstreecontroller , nsoutlineview manages category entity, works great. have arraycontroller mode set entity, entity name set items, content set bindings set tree controller controller key of "selection" , model key path set relationship.

i have tested works selecting categories in outline view , outputting how many items available within array controller when alter selection tree controller using next code:

swift:

@iboutlet var itemsarraycontroller: nsarraycontroller! @ibaction func logresult(sender: anyobject) { println("items array has \(itemsarraycontroller.content?.count) records") // print first item console var anitem : items! = itemsarraycontroller.content?.objectatindex(0) items if allow : items = anitem? { println(something.name) } }

now want hook table view array controller list items of selected category.

so if bind table view cell's value items array controller.arrangedobjects.name , click run xcode starts compiling , doesnt proceed past 50%. activity monitor->memory shows "ibtooid" 5gb of memory after awhile before entire scheme locks , have hard reset mac. if click stop in xcode ibtooid continues eat memory, way stop hard reset kill process,.

any help much appreciated. thanks

xcode version 6.1 (6a1046a)

fixed changing table cell based rather view based. file bug apple.

cocoa core-data swift interface-builder cocoa-bindings

No comments:

Post a Comment