Skip navigation.
 
mlRe: Using "@class" to reference a protocol
FROM : Timothy J.Wood
DATE : Fri Apr 08 22:18:52 2005

On Apr 8, 2005, at 11:13 AM, Greg Titus wrote:
> Declare that it conforms to the protocol in a category:
>
> @interface SomeClass (TheProtocolCategory) <protocol>
> @end
>
> If all of the protocol methods are already implemented in the class,
> you don't need to have an @implementation of the category anywhere.


  You should test if -conformsToProtocol: works with this approach --
there are some oddities with how protocol conformance gets registered,
as I remember.

-tim

Related mailsAuthorDate
mlUsing "@class" to reference a protocol Steven Noyes Apr 8, 20:07
mlRe: Using "@class" to reference a protocol Jim Thomason Apr 8, 20:13
mlRe: Using "@class" to reference a protocol Greg Titus Apr 8, 20:13
mlRe: Using "@class" to reference a protocol Timothy J.Wood Apr 8, 22:18