   // IMPORTANT:  This outlet is how we access the view controller which should render
   // the popup.  If the viewController outlet isn't wired up to a view controller (usually this control's parent VC),
   // then the popup won't appear.
-  @IBOutlet weak var viewController: UIViewController!
+  @IBOutlet weak var popupContainer: UIViewController!
   
   // The date contained in the text field.
   // Any time it changes, the delegate is notified (meaning the delegate may need to filter the event from initial population).

//  Copyright © 2015 Michael Chaffee. All rights reserved.
//

/*
This custom control is a read-only UITextField which, when touched, raises a DatePickerPop and, after user entry,
places that picker's value in its own text with its dateStyle property's style.
*/
import UIKit

public class DatePickerTextField: UITextField {

      forTextField.date = newDate
    }
    
    datePickerPop.pick(popupContainer, initDate: self.date, dataChanged: dataChangedCallback)
    
  }
  
