On Oct 8, 2010, at 17:12:28, Kyle Sluder wrote: > The documentation states you can't add ivars to classes that have > already been registered. In order for a class to receive +initialize, > it logically must already have been registered with the runtime. > Therefore, it's quite apparent why class_addIvar() can't be called > from +initialize.
Hmm...thinking about it a bit more...how do dynamically-synthesized property ivars work (where you just @synthesize them without declaring an ivar)? Do they use class_addIvar()? That suggests I'm wrong about class layout. -- Rick _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com