Reputation: 1
I learn Cocoa Bindings on macOS https://www.raywenderlich.com/921-cocoa-bindings-on-macos#toc-anchor-009,but I use xcode13 and swift5,I do this step by step,but The first step is to bind the array controller to the table view,I find something wrong.enter image description here,but in my project ,I cann't find this selector "SearchResultsController" like this picture enter image description here.if I ignore this problem and choose the "Array Controller" go on,Repeat the above process for Publisher TextField (Bind) by binding the value of this element to objectValue.artistName. build and run ,I will get error"Thread 1: EXC_BREAKPOINT (code=1, subcode=xxxx",I try many times just find the "Bind to"and "Model Key Path" value wrong.Can anyone tell me why? what does these two options mean?
Upvotes: -2
Views: 132
Reputation: 1
I solve this problem.I set the NSArray Controller bind to View Controller and model key Path = "people"(this people is a array defined by myself),when get the request Data,append it to people. So it works success!But I don't know the real reason.I doubt that NSArray Controller must bind to a exist array,because the error with it doern't bind to .
Upvotes: 0