• Valeriy Van's avatar
    Merge pull request #7178 from valeriyvan:iosfixes · f1dcf71d
    Valeriy Van authored
    * Changes delegate property from assign to weak
    
    In modern Objective-C delegate should be weak. In very rare conditions you might want delegate be strong.
    Assign for delegate is sign of legacy code.
    This change prevents crash when you forget nil delegate in dealloc and makes rush with nilling delegate unnecessary.
    This change shouldn't break any existing code.
    
    * Adds implementation for setters and getters for weak delegate properties for non ARC Obj-C files
    
    For whatever reason compiler can't synthesize these.
    And yes, it's time to convert all Objective-C stuff to ARC.
    f1dcf71d
Name
Last commit
Last update
.github Loading commit data...
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...