Can't subclass NSPageController in Swift

Originator:marcin.krzyzanowski
Number:rdar://47053704 Date Originated:January 4 2019
Status:Open Resolved:
Product:AppKit Product Version:
Classification: Reproducible:
 
Area:
AppKit

Summary:
NSPageController.init() is not marked as a designed initializer:

```
class ProjectCreatorPageController: NSPageController {
    init() {
        super.init() // Must call a designated initializer of the superclass 'NSPageController'
    }
}
```

however, the transition view hierarchy setup (_initializeTransitionViewHierarchy) is called only from NSPageController.init() and NSPageController.init(coder:), but not from  NSPageController.init(nibName:bundle:) - that is from NSViewController.

As a result, designated initializers are not properly marked for the class, hence the class cannot be successfully subclassed programmatically.

Version/Build:
Xcode Version 10.1 (10B61)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!