You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2018. It is now read-only.
AFAIK, setters and getters are shared between all instances of a class in Swift. They seem to have the following structure:
constintfoo_offset=0x48;
intgetFoo(void*self)
{
return*(uinptr_t*)(self+foo_offset);
}
voidsetFoo(intnew_value, void*self)
{
// there will be release/retain for non-scalar types // ...*(uintptr_t*)(self+foo_offset) =new_value;
}
So it's impossible (?) to hook a getter/setter for the only instance of a class.
Needs some research, though.