Today I\'ve met one weird issue when I was trying to \'generalize\' my \'CoreData importing operations\'. It appeared that if I create a generic subclass of NSOperation the
Workaround: You can create NSOperation subclass (no generic), override main and call you own 'execute' func, which can be overriden by generic subclasses. Example:
class SwiftOperation : NSOperation {
final override func main() {
execute()
}
func execute() {
}
}
class MyOperation : SwiftOperation {
override func execute() {
println("My operation main was called")
}
}