NSStreamDelegate was defined in previous OS as (NSObject)NSStreamDelegate In the latest OS it is defined as id
Both have the same function.
If I want to write code that is Runtime system aware. How do I create an object that is both and neither? I dream of that truly universal app.
if (catchOS10.5_or_iOS3.2) { [MyStream setDelegate:myObj] } else { [MyStream setDelegate:myObjWithProtocol] }
I have myHandlerClass which in the NEW os is MyClass:NSObject
Thus my quandary.
Any suggestions?
-A