Post

Replies

Boosts

Views

Activity

Reply to How to use combo box cell in a tableView
I get an error when I added the following statement NSComboBoxCell.delegate = self The error was no delegate member for NSComboBoxCell.. So, I created a new test project which had a single view and a tableView that I added a comboBox to one of the columns without trying to use a datasource, I expected to see Item 1, Item 2 .. etc. in the column, but again nothing. Also, the comboBox is editable. There must be something basic I am missing. Still looking for an example..
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’21
Reply to How to use combo box cell in a tableView
I changed func numberOfItemsInComboBoxCell(in comboBoxCell: NSComboBoxCell) - Int { to func numberOfItems(in comboBoxCell: NSComboBoxCell) - Int { and the error went away, however it still does not work. Also, I put a breakpoint on the function " func comboBoxCell" and it does not get called. Any Ideas how to resolve?
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’21
Reply to How to use NSSpellChecker and NSTextCheckingController?
It turns out if I use a NSTextView object instead of NSTextField object the spelling and grammar are built in. So, all I had do to was the following: create a scrollable text view object and then connect the TextView as follows:  @IBOutlet var itemDescription: NSTextView! Then turn on continuous spell checking with  itemDescription.isContinuousSpellCheckingEnabled = true
Topic: UI Frameworks SubTopic: AppKit Tags:
Mar ’21