Skip to content

Instantly share code, notes, and snippets.

@between40and2
Created October 24, 2013 09:45
Show Gist options
  • Save between40and2/7134217 to your computer and use it in GitHub Desktop.
Save between40and2/7134217 to your computer and use it in GitHub Desktop.
class_addIvar, in Objective-C runtime, is useless
class_addIvar, in Objective-C runtime, is useless, because it does not support to add ivar in an EXISTING class.
https://developer.apple.com/library/ios/documentation/Cocoa/Reference/ObjCRuntimeRef/Reference/reference.html#//apple_ref/c/func/class_addIvar
You can use the concept of idInfo (see id-ego-superego), to add run-time generated objects' property.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment