In Objective-C, I'm curious how access controls for instance variables such as @protected , @protected , etc. are @protected .
I believed that the individual structures are generated in some way as follows:
@interface Foo { int bar; @private int baz; @public int qux; }
=> something along the lines
struct Class_Foo_Protected { int bar; }; struct Class_Foo_Private { int baz; }; struct Class_Foo_Public { int qux; };
But I really have no idea. Does anyone know how this was done?
source share