Hi everyone. I am new to macOS - working my way through some examples and getting to grips with some of the controls before I embark on my new project. Do far I’ve tacked container controls, tableviews, delegate and actions etc so I think I am doing OK generally… however.
I am really struggling with NSTextField. I simply need (I say simply) to be able to get an event every time the text is changed. I figured it would be a delegate and that I’d use an extension like I do with NSTableView. Nothing I’ve seen by way of examples work so far and some of them seems to suggest that I need to delegate to the ‘app controller’. Then I read an example about overriding a function.
First up: can anyone share with me a simple project that has a NSTextField on a ViewController that captures the text changed events. The examples I’ve seen don’t work with Xcode 10 / Swift 4. Something always errors on compile.
I am struggling to interpret the documentation and also to understand why some controls work via delegates and some need function overrides and others seem to need to hook into notifications.
Is it me or is there a tonne of inconsistency for macOS?
Any pointers much appreciated.