Using invocation forwarding
Using invocation forwarding
- Subject: Using invocation forwarding
- From: John Timmer <email@hidden>
- Date: Tue, 16 Dec 2003 12:17:44 -0500
A while back I found out that subclassing a dictionary is a nightmare,
because dictionaries are actually one of a number of private subclasses.
Categories won't work, since I still need a couple of additional variables.
I was thinking that simply wrapping a dictionary in a class with a
forwardInvocation method would allow me send any messages I don't understand
on to the dictionary, while still having a few variables and a couple of
specialized methods. Are there reasons or situations where this would fail
while a normal dictionary wouldn't? Any advice or warnings?
Thanks,
JT
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.