Override several overloaded init () methods in Swift

I am trying to create my own subclass NSTextFieldCellin Swift (Xcode Beta 5) with the following code:

class CustomHighlightTextFieldCell : NSTextFieldCell {

    required init(coder aCoder: NSCoder!) {
        super.init(coder: aCoder)
    }

    init(imageCell anImage: NSImage!) {
        super.init(imageCell: anImage)
    }

    init(textCell aString: String!) {
        super.init(textCell: aString)
    }
}

However, I get compilation errors in the 2nd and 3rd declarations init():

/Users/Craig/projects/.../CustomHighlightTextFieldCell:8:40: Invalid redeclaration of 'init(imageCell:)'
/Users/Craig/projects/.../CustomHighlightTextFieldCell.swift:17:5: 'init(imageCell:)' previously declared here

/Users/Craig/projects/.../CustomHighlightTextFieldCell:7:39: Invalid redeclaration of 'init(textCell:)'
/Users/Craig/projects/.../CustomHighlightTextFieldCell.swift:21:5: 'init(textCell:)' previously declared here

While there are some weird compiler errors (I get the usual “SourceKitService Terminated, Editor temporarily limited source application”), it looks like I'm missing something in my redefinition method - but I can't say what.

I was on the assumption that named parameters, or at least parameter types, mean that there are three different methods init(), but apparently I miss the key element of the puzzle.

: override 2- 3- init() , :

required init(coder aCoder: NSCoder!) {
    super.init(coder: aCoder)
}

override init(imageCell anImage: NSImage!) {
    super.init(imageCell: anImage)
}

override init(textCell aString: String!) {
    super.init(textCell: aString)
}

( override), , .

/Users/Craig/projects/.../CustomHighlightTextFieldCell.swift:17:14: Initializer does not override a designated initializer from its superclass
/Users/Craig/projects/.../CustomHighlightTextFieldCell.swift:21:14: Initializer does not override a designated initializer from its superclass
+4
2

, ( ) , @objc. :

class CustomHighlightTextFieldCell : NSTextFieldCell {

    required init(coder aCoder: NSCoder!) {
        super.init(coder: aCoder)
    }

    @objc(initImageCell:)
    override init(imageCell anImage: NSImage!) {
        super.init(imageCell: anImage)
    }

    @objc(initTextCell:)
    override init(textCell aString: String!) {
        super.init(textCell: aString)
    }
}
+5

, super.init(xxx) , , . .

override init(imageCell anImage: NSImage!) {
    super.init(imageCell: anImage)
}

override init(textCell aString: String!) {
    super.init(textCell: aString)
}
+3

All Articles