Overriding NSDocument’s initWithType Method in Swift
·1 min
I struggled briefly with overriding NSDocument’s initWithType: method in Swift so I’m sharing my code. Hopefully this example will help others.
convenience init(type typeName: String!, error outError: NSErrorPointer) {
self.init()
// Place your initialization code here.
}