refactor: delegate protocol to instance variable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

refactor: delegate protocol to instance variable

rush
As usuall, there is a very good chance this is just in front of my eyes but
I do not see it.

So, is there a quick way (in few clicks) to create delegation for some
protocol. For instance lets say I have some class  StrangeBeast, which does
what it does, but I would like it to also implement ReadStream by delegating
all ReadStream methods to its instance variable readStream. Ideally I would
click on class -> delegate, choose a protocol, choose an instance var, and
result would be a pregenerated set of methods looking similar to:

next
    ^readStream next

position: aPos
    ^readStream position: aPos

...... etc

of course some othem might need some tweaking, but it would still help to
reduce the carpal tunnel sindrom considerably ;)

rush
--
http://www.templatetamer.com/
http://www.folderscavenger.com/