 
 }
 
-protocol TurnDelegate {
-    
-    func willOpenSliceAtIndex(index:Int)
-    func willCloseSliceAtIndex(index:Int)
-    
-    func didOpenSliceAtIndex(index:Int)
-    func didCloseSliceAtIndex(index:Int)
+@objc protocol TurnDelegate {
+    
+    optional func willOpenSliceAtIndex(index:Int)
+    optional func willCloseSliceAtIndex(index:Int)
+    
+    optional func didOpenSliceAtIndex(index:Int)
+    optional func didCloseSliceAtIndex(index:Int)
     
 }
 

                let translate = CATransform3DMakeTranslation(transX, transY, 0);
                
                
                delegate?.willOpenSliceAtIndex(cpt)
                openedSlice?.transform = translate
                delegate?.didOpenSliceAtIndex(cpt)
                
                
                

                
                
                if((openedSlice?.transform) != nil)  {
                    delegate?.willCloseSliceAtIndex!(oldSelected)
                    openedSlice?.transform = oldTransform!
                    delegate?.didCloseSliceAtIndex!(oldSelected)
                }
                
                
