[vtk-developers] Use of autorelease in Cocoa classes
David Gobbi
david.gobbi at gmail.com
Tue Feb 5 14:34:48 EST 2013
Here's a very simple diff that re-adds the flag, it should be enough to
test whether it has the desired effect on gc.
- David
diff --git a/Rendering/OpenGL/CMakeLists.txt b/Rendering/OpenGL/CMakeLists.txt
index 5e59f56..7e06178 100644
--- a/Rendering/OpenGL/CMakeLists.txt
+++ b/Rendering/OpenGL/CMakeLists.txt
@@ -340,6 +340,12 @@ elseif(VTK_USE_COCOA)
list(APPEND ${vtk-module}_HDRS
vtkCocoaMacOSXSDKCompatibility.h
)
+ set_source_files_properties(
+ vtkCocoaRenderWindowInteractor.mm
+ vtkCocoaRenderWindow.mm
+ vtkCocoaGLView.mm
+ PROPERTIES COMPILE_FLAGS "-fobjc-gc"
+ )
set_source_files_properties(vtkCocoaGLView WRAP_EXCLUDE)
elseif(VTK_USE_CARBON)
# Add some custom overrides
More information about the vtk-developers
mailing list