Suppressing deprecated warnings

I can’t comment on the evolution side of this but, on the practical front…

  • If you’re specific concern is testing deprecated code, mark your test method as deprecated. The system will still run it but, because it’s deprecated, it won’t generate deprecation warnings.

  • In other situations I use the protocol workaround described here.

Needless to say, the second point does not make me happy (r. 31131633)-:

Share and Enjoy

Quinn “The Eskimo!” @ DTS @ Apple

6 Likes