i'm trying to determinate if the AnyClass that is send to my method is Subclass of NSManagedObject
func myFunction (classType:AndClass){
if classType is NSManagedObject{
//do some stuff
}
}
I guess i'm doing something wrong because the compiler doesn't accept this.
please help