2 Replies
      Latest reply on May 17, 2018 12:01 PM by T P
      T P Level 1 Level 1 (0 points)

        I have 2 PopUp buttions in my app.  Both have identical selections in their respective attribute inspectors.  But, when compileing, I get the error, "Value of type 'NSTextField' has no member 'addItems'".  Following is a copy of my code:

         

        override func viewDidLoad() {

                super.viewDidLoad()

                let monthNameValues = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]

                incomeMonOne.addItems(withTitles: monthNameValues)

              

                let assetTypeValues = ["Bond", "Fund", "Stock"]

                assetType.addItems(withTitles: assetTypeValues)    ****** Error shows here  ******

                // Do any additional setup after loading the view.

            }

         

        What's going on here.