Skip to content

Instantly share code, notes, and snippets.

@luca-bernardi
Created August 13, 2014 10:44
Show Gist options
  • Save luca-bernardi/4e0a8e6228f2c7241559 to your computer and use it in GitHub Desktop.
Save luca-bernardi/4e0a8e6228f2c7241559 to your computer and use it in GitHub Desktop.
objc_setProperty_nonatomic_copy disassembled
void objc_setProperty_nonatomic_copy(id self, SEL _cmd, id newValue, ptrdiff_t offset)
{
temp = [newValue copyWithZone:NULL];
oldValue = *(self + offset);
*(sef + offset) = temp;
_objc_release(oldValue);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment