Skip to content

panupan/RetainCycleTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Description

Little utility to investigate how to solve the bindings retain cycle problem.

Usage

  • Launch the application
  • Pick your view's className
  • Click alloc to initialize and add your view to the stage
  • Click release to remove your view and send it a release message, you should see a dealloc message if there are no retain cycles.

Testable Views

  • NSView - stock view
  • RetainCycleTestView - has a binding that causes a retain cycle
  • TearDownTestView - fixed retain cycle by calling a teardown method when with it
  • SelfProxyTestView - fixed retain cycle by subclassing SelfProxyView and binding through selfProxy

SelfProxyView based off: http://theocacao.com/document.page/18

About

Test utility to see if your view is getting deallocated properly. Example of using the SelfProxyView class to prevent retain cycle caused by bindings.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors