I mean as far as I see it, the parts of ObjC that are new to 2.0 that I use are similar to macro...they don't offer much new functionality, but rather save time.
Code:
@property(retain, readwrite) NSObject* exampleProperty;
----
@synthesize exampleProperty=myVariable;
is (I assume) just like plugging in the code:
Code:
- (void) setExampleProperty: (NSObject*) aValue
{
[aValue retain];
[myVariable release];
myVariable=aValue;
}
-(NSObject*) exampleProperty
{
return myVariable;
}
Now I'm sure they do more stuff behind the scenes (serialization perhaps?), but I just wish an entire different runtime wasn't required. Would it be possible to implement the objC_setProperty(...) [etc] method to enable this behavior?