I d like to be able to write
id foo = [MyObject new]; foo.bar = [NSObject new];
But I get the following error:
/blah/blah/blah/Blah.m:32:9: error: property bar not found on object of type __strong id foo.bar = [NSObject new]; ^ 1 error generated.
Since clang doesn t report a warning I could suppress, I assume this behavior is permanent, but I hope someone can tell me otherwise.
http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/ObjCRuntimeGuide/Articles/ocrtDynamicResolution.html#//apple_ref/doc/uid/TP40008048-CH102-SW1 http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/ObjCRuntimeGuide/Articles/ocrtDynamicResolution.html#//apple_ref/doc/uid/TP40008048-CH102-SW1