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?
1
There are 1 answers
Related Questions in MACOS
- Error installing Nativescript on Mac M2 Sonoma 14.4.1
- macOS - Most secure way of a GUI SUDO_ASKPASS
- When using onDrag in SwiftUI on Mac how can I detect when the dragged object has been released anywhere?
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- ZSH function parameters conundrum
- how to make read only file/directory in Mac writable
- macOS BigSur - Unable to run bundled php version or brew php 8
- 9 Digit Addresses in Hexadecimal System in MacOS
- MacOS Bash-Script: while read p and echo
- How to make a range for tail rows on a categorized table in Numbers with JXA scripts?
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to recover deleted files from create vite react project
- Can't run built SFML project from Xcode template
- React Native - RealmJS - Linker command failed with exit code 1
- How can I manually add a keyboard shortcut to a Shortcut Action Service directly via the system files, without going through the System Prefs GUI?
Related Questions in COCOA-BINDINGS
- Bindings in NSPopUpButtonCell
- string.length keypath binding crashes during nib decode on Sonoma
- NSTableView cell value may remain with invalid value after validateValue(_:forKey:) failed. How to prevent this?
- Cocoa Bindings: binding each menu item of a NSPopUpButton, so that it can be enabled/disabled individually
- Can you save the selection of a master-detail bound NSTableView?
- MacOS: How to update an AppDelegate property via editing a table view cell?
- How do I add my own properties to the Bindings Inspector in Xcode?
- Cocoa Bindings on macOS
- Using INotifyPropertyChanged view models with Cocoa/AppKit bindings
- What are the best practices for using objectIsForced with controls bound to a shared user defaults controller?
- NSTableView (or NSOutlineView) column hiding through contextual menu : a "no code" solution
- Subclassing NSImageView with the binding ability
- Can't update dictionary connected to NSDictionaryController
- How to wire up a custom view using NSViewController to a model?
- Using Core Data and Cocoa Bindings in multiple storyboard scenes
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
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 .