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
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 mails | Author | Date |
|---|---|---|
| Steven Noyes | Apr 8, 20:07 | |
| Jim Thomason | Apr 8, 20:13 | |
| Greg Titus | Apr 8, 20:13 | |
| Timothy J.Wood | Apr 8, 22:18 |






Cocoa mail archive

